Fixed rendering of member variables with alias to template or alias template (t00014)
This commit is contained in:
@@ -30,8 +30,8 @@ TEST_CASE("t00002", "[test-case][class]")
|
||||
|
||||
REQUIRE(diagram->exclude().namespaces.size() == 0);
|
||||
|
||||
REQUIRE(diagram->should_include("clanguml::t00002::A"));
|
||||
REQUIRE(!diagram->should_include("std::vector"));
|
||||
REQUIRE(diagram->should_include({"clanguml", "t00002"}, "A"));
|
||||
REQUIRE(!diagram->should_include({"std"}, "vector"));
|
||||
|
||||
auto model = generate_class_diagram(db, diagram);
|
||||
|
||||
|
||||
@@ -39,12 +39,23 @@ TEST_CASE("t00014", "[test-case][class]")
|
||||
REQUIRE_THAT(puml, IsClassTemplate("A", "T,std::string"));
|
||||
REQUIRE_THAT(puml, IsClassTemplate("A", "bool,std::string"));
|
||||
REQUIRE_THAT(puml, IsClassTemplate("AString", "float"));
|
||||
REQUIRE_THAT(puml, IsClassTemplate("AString", "int"));
|
||||
REQUIRE_THAT(puml, IsClassTemplate("AString", "std::string"));
|
||||
REQUIRE_THAT(
|
||||
puml, !IsClassTemplate("std::std::function", "void(T...,int),int)"));
|
||||
|
||||
REQUIRE_THAT(puml, IsInstantiation(_A("A<T,P>"), _A("A<T,std::string>")));
|
||||
REQUIRE_THAT(
|
||||
puml, IsInstantiation(_A("A<T,std::string>"), _A("AString<float>")));
|
||||
REQUIRE_THAT(
|
||||
puml, IsInstantiation(_A("A<T,std::string>"), _A("AString<int>")));
|
||||
REQUIRE_THAT(
|
||||
puml, !IsInstantiation(_A("AString<int>"), _A("AString<int>")));
|
||||
REQUIRE_THAT(puml,
|
||||
IsInstantiation(_A("A<T,std::string>"), _A("AString<std::string>")));
|
||||
REQUIRE_THAT(puml,
|
||||
!IsInstantiation(
|
||||
_A("AString<std::string>"), _A("AString<std::string>")));
|
||||
REQUIRE_THAT(
|
||||
puml, IsAggregation(_A("R"), _A("A<bool,std::string>"), "-boolstring"));
|
||||
REQUIRE_THAT(
|
||||
|
||||
@@ -32,6 +32,8 @@ TEST_CASE("Test split", "[unit-test]")
|
||||
CHECK(split("ABCD", " ") == C{"ABCD"});
|
||||
|
||||
CHECK(split("std::vector::detail", "::") == C{"std", "vector", "detail"});
|
||||
|
||||
CHECK(split("std::vector::detail::", "::") == C{"std", "vector", "detail"});
|
||||
}
|
||||
|
||||
TEST_CASE("Test ns_relative", "[unit-test]")
|
||||
|
||||
Reference in New Issue
Block a user