WIP
This commit is contained in:
@@ -40,6 +40,7 @@ set(TEST_CASES
|
||||
test_config
|
||||
test_cli_handler
|
||||
test_filters
|
||||
test_template_parser
|
||||
test_thread_pool_executor)
|
||||
|
||||
foreach(TEST_NAME ${TEST_CASES})
|
||||
|
||||
@@ -60,20 +60,16 @@ TEST_CASE("t00051", "[test-case][class]")
|
||||
|
||||
REQUIRE_THAT(puml,
|
||||
IsClassTemplate("B",
|
||||
"(lambda at ../../tests/t00051/t00051.cc:43:18),(lambda at "
|
||||
"../../tests/t00051/t00051.cc:43:27)"));
|
||||
"(lambda at ../../tests/t00051/t00051.cc:43:18)"));
|
||||
//,(lambda at ../../tests/t00051/t00051.cc:43:27)"));
|
||||
|
||||
REQUIRE_THAT(puml,
|
||||
IsInstantiation(_A("B<F,FF=F>"),
|
||||
_A("B<(lambda at ../../tests/t00051/t00051.cc:43:18),(lambda "
|
||||
"at "
|
||||
"../../tests/t00051/t00051.cc:43:27)>")));
|
||||
_A("B<(lambda at ../../tests/t00051/t00051.cc:43:18)>")));
|
||||
|
||||
REQUIRE_THAT(puml,
|
||||
IsDependency(_A("A"),
|
||||
_A("B<(lambda at ../../tests/t00051/t00051.cc:43:18),(lambda "
|
||||
"at "
|
||||
"../../tests/t00051/t00051.cc:43:27)>")));
|
||||
_A("B<(lambda at ../../tests/t00051/t00051.cc:43:18)>")));
|
||||
|
||||
save_puml(
|
||||
config.output_directory() + "/" + diagram->name + ".puml", puml);
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace clanguml {
|
||||
@@ -8,6 +10,17 @@ template <typename U> struct A<U &> {
|
||||
U &u;
|
||||
};
|
||||
|
||||
template <typename U> struct A<std::map<std::string, U> &> {
|
||||
U &u;
|
||||
};
|
||||
|
||||
template <>
|
||||
struct A<std::map<std::string, std::map<std::string, std::string>> &> { };
|
||||
|
||||
template <typename U> struct A<U ***> {
|
||||
U ***u;
|
||||
};
|
||||
|
||||
template <typename U> struct A<U &&> {
|
||||
U &&u;
|
||||
};
|
||||
@@ -58,5 +71,6 @@ template <int N> struct A<char[N]> {
|
||||
template <> struct A<char[1000]> {
|
||||
std::vector<char> n;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
@@ -36,7 +36,7 @@ TEST_CASE("t00062", "[test-case][class]")
|
||||
REQUIRE_THAT(puml, EndsWith("@enduml\n"));
|
||||
|
||||
// Check if all classes exist
|
||||
REQUIRE_THAT(puml, IsClassTemplate("A", "T"));
|
||||
REQUIRE_THAT(puml, IsClassTemplate("A", "TTTT"));
|
||||
REQUIRE_THAT(puml, IsClassTemplate("A", "U &"));
|
||||
REQUIRE_THAT(puml, IsClassTemplate("A", "U &&"));
|
||||
REQUIRE_THAT(puml, IsClassTemplate("A", "U const&"));
|
||||
|
||||
Reference in New Issue
Block a user