mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-12 21:56:54 +00:00
Unit tests: Move last remaining tests onto using the type_graph_utils helpers
This commit is contained in:
parent
00b46377a1
commit
5560624c0b
@ -1,14 +1,10 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "oi/type_graph/AlignmentCalc.h"
|
||||
#include "test/type_graph_utils.h"
|
||||
|
||||
using namespace type_graph;
|
||||
|
||||
// TODO put in header:
|
||||
void test(Pass pass,
|
||||
std::vector<std::reference_wrapper<Type>> types,
|
||||
std::string_view expected);
|
||||
|
||||
TEST(AlignmentCalcTest, PrimitiveMembers) {
|
||||
auto myclass = Class{Class::Kind::Class, "MyClass", 16};
|
||||
auto myint8 = Primitive{Primitive::Kind::Int8};
|
||||
|
@ -4,11 +4,10 @@
|
||||
|
||||
#include "oi/type_graph/TopoSorter.h"
|
||||
#include "oi/type_graph/Types.h"
|
||||
#include "test/type_graph_utils.h"
|
||||
|
||||
using namespace type_graph;
|
||||
|
||||
Container getVector(); // TODO put in a header
|
||||
|
||||
template <typename T>
|
||||
using ref = std::reference_wrapper<T>;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user