2023-05-31 14:26:46 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
#include <string_view>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace type_graph {
|
|
|
|
class Container;
|
|
|
|
class Pass;
|
|
|
|
class Type;
|
|
|
|
} // namespace type_graph
|
|
|
|
|
2023-06-20 17:57:43 +01:00
|
|
|
void check(const std::vector<std::reference_wrapper<type_graph::Type>>& types,
|
|
|
|
std::string_view expected,
|
|
|
|
std::string_view comment);
|
|
|
|
|
2023-05-31 14:26:46 +01:00
|
|
|
void test(type_graph::Pass pass,
|
|
|
|
std::vector<std::reference_wrapper<type_graph::Type>> rootTypes,
|
|
|
|
std::string_view expectedBefore,
|
|
|
|
std::string_view expectedAfter);
|
|
|
|
|
|
|
|
void test(type_graph::Pass pass,
|
|
|
|
std::vector<std::reference_wrapper<type_graph::Type>> rootTypes,
|
|
|
|
std::string_view expectedAfter);
|
|
|
|
|
|
|
|
type_graph::Container getVector();
|
2023-06-26 21:36:24 +01:00
|
|
|
type_graph::Container getMap();
|
|
|
|
type_graph::Container getList();
|