Added scope symbol in front of relationships
This commit is contained in:
@@ -53,7 +53,7 @@ TEST_CASE("t00002", "[test-case][class]")
|
||||
REQUIRE_THAT(puml, (IsMethod<Public, Abstract>("foo_a")));
|
||||
REQUIRE_THAT(puml, (IsMethod<Public, Abstract>("foo_c")));
|
||||
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("D"), _A("A"), "as"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("D"), _A("A"), "-as"));
|
||||
|
||||
save_puml(
|
||||
"./" + config.output_directory + "/" + diagram->name + ".puml", puml);
|
||||
|
||||
@@ -61,17 +61,17 @@ TEST_CASE("t00005", "[test-case][class]")
|
||||
REQUIRE_THAT(puml, (IsField<Public>("some_int_pointer", "int*")));
|
||||
REQUIRE_THAT(puml, (IsField<Public>("some_int_pointer_pointer", "int**")));
|
||||
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("A"), "a"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("B"), "b"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("C"), "c"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("D"), "d"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("E"), "e"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("F"), "f"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("G"), "g"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("H"), "h"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("I"), "i"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("J"), "j"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("K"), "k"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("A"), "+a"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("B"), "+b"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("C"), "+c"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("D"), "+d"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("E"), "+e"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("F"), "+f"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("G"), "+g"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("H"), "+h"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("I"), "+i"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("J"), "+j"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("K"), "+k"));
|
||||
|
||||
save_puml(
|
||||
"./" + config.output_directory + "/" + diagram->name + ".puml", puml);
|
||||
|
||||
@@ -65,22 +65,22 @@ TEST_CASE("t00006", "[test-case][class]")
|
||||
REQUIRE_THAT(puml,
|
||||
IsInstantiation(_A("custom_container<T>"), _A("custom_container<E>")));
|
||||
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("A"), "a"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("B"), "b"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("C"), "c"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("D"), "d"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("custom_container<E>"), "e"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("F"), "f"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("G"), "g"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("H"), "h"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("I"), "i"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("J"), "j"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("K"), "k"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("L"), "lm"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("M"), "lm"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("N"), "ns"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("NN"), "ns"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("NNN"), "ns"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("A"), "+a"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("B"), "+b"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("C"), "+c"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("D"), "+d"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("custom_container<E>"), "+e"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("F"), "+f"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("G"), "+g"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("H"), "+h"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("I"), "+i"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("J"), "+j"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("K"), "+k"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("L"), "+lm"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("M"), "+lm"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("N"), "+ns"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("NN"), "+ns"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("NNN"), "+ns"));
|
||||
|
||||
save_puml(
|
||||
"./" + config.output_directory + "/" + diagram->name + ".puml", puml);
|
||||
|
||||
@@ -50,9 +50,9 @@ TEST_CASE("t00007", "[test-case][class]")
|
||||
REQUIRE_THAT(puml, IsClass(_A("C")));
|
||||
REQUIRE_THAT(puml, IsClass(_A("R")));
|
||||
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("A"), "a"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("B"), "b"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("C"), "c"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("A"), "+a"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("B"), "+b"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("R"), _A("C"), "+c"));
|
||||
|
||||
save_puml(
|
||||
"./" + config.output_directory + "/" + diagram->name + ".puml", puml);
|
||||
|
||||
@@ -54,10 +54,11 @@ TEST_CASE("t00009", "[test-case][class]")
|
||||
REQUIRE_THAT(puml, IsInstantiation(_A("A<T>"), _A("A<int>")));
|
||||
REQUIRE_THAT(puml, IsInstantiation(_A("A<T>"), _A("A<std::string>")));
|
||||
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("B"), _A("A<int>"), "aint"));
|
||||
REQUIRE_THAT(puml, IsAssociation(_A("B"), _A("A<std::string>"), "astring"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("B"), _A("A<int>"), "+aint"));
|
||||
REQUIRE_THAT(
|
||||
puml, IsAssociation(_A("B"), _A("A<std::string>"), "+astring"));
|
||||
REQUIRE_THAT(puml,
|
||||
IsAssociation(_A("B"), _A("A<std::vector<std::string>>"), "avector"));
|
||||
IsAssociation(_A("B"), _A("A<std::vector<std::string>>"), "+avector"));
|
||||
|
||||
save_puml(
|
||||
"./" + config.output_directory + "/" + diagram->name + ".puml", puml);
|
||||
|
||||
@@ -52,8 +52,8 @@ TEST_CASE("t00010", "[test-case][class]")
|
||||
REQUIRE_THAT(puml, IsInstantiation(_A("B<T>"), _A("B<int>")));
|
||||
|
||||
REQUIRE_THAT(
|
||||
puml, IsAggregation(_A("B<T>"), _A("A<T,std::string>"), "astring"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("C"), _A("B<int>"), "aintstring"));
|
||||
puml, IsAggregation(_A("B<T>"), _A("A<T,std::string>"), "+astring"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("C"), _A("B<int>"), "+aintstring"));
|
||||
|
||||
save_puml(
|
||||
"./" + config.output_directory + "/" + diagram->name + ".puml", puml);
|
||||
|
||||
@@ -56,7 +56,8 @@ TEST_CASE("t00013", "[test-case][class]")
|
||||
REQUIRE_THAT(puml, IsDependency(_A("R"), _A("E<int>")));
|
||||
REQUIRE_THAT(puml, IsInstantiation(_A("E<T>"), _A("E<int>")));
|
||||
REQUIRE_THAT(puml, IsInstantiation(_A("E<T>"), _A("E<std::string>")));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("E<std::string>"), "estring"));
|
||||
REQUIRE_THAT(
|
||||
puml, IsAggregation(_A("R"), _A("E<std::string>"), "-estring"));
|
||||
REQUIRE_THAT(puml, IsDependency(_A("R"), _A("ABCD::F<T>")));
|
||||
REQUIRE_THAT(puml, IsInstantiation(_A("ABCD::F<T>"), _A("ABCD::F<int>")));
|
||||
REQUIRE_THAT(puml, IsDependency(_A("R"), _A("ABCD::F<int>")));
|
||||
|
||||
@@ -48,7 +48,11 @@ class R {
|
||||
AString<float> floatstring;
|
||||
AIntString intstring;
|
||||
AStringString stringstring;
|
||||
|
||||
protected:
|
||||
BVector bs;
|
||||
|
||||
public:
|
||||
BVector2 bs2;
|
||||
GeneralCallback<AIntString> cb;
|
||||
VoidCallback vcb;
|
||||
|
||||
@@ -49,11 +49,11 @@ TEST_CASE("t00014", "[test-case][class]")
|
||||
REQUIRE_THAT(
|
||||
puml, IsInstantiation(_A("A<T,std::string>"), _A("AString<float>")));
|
||||
REQUIRE_THAT(
|
||||
puml, IsAggregation(_A("R"), _A("A<bool,std::string>"), "boolstring"));
|
||||
puml, IsAggregation(_A("R"), _A("A<bool,std::string>"), "-boolstring"));
|
||||
REQUIRE_THAT(
|
||||
puml, IsAggregation(_A("R"), _A("AString<float>"), "floatstring"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("B"), "bs"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("B"), "bs2"));
|
||||
puml, IsAggregation(_A("R"), _A("AString<float>"), "-floatstring"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("B"), "#bs"));
|
||||
REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("B"), "+bs2"));
|
||||
|
||||
save_puml(
|
||||
"./" + config.output_directory + "/" + diagram->name + ".puml", puml);
|
||||
|
||||
Reference in New Issue
Block a user