Fixed up to t00013

This commit is contained in:
Bartek Kryza
2022-07-23 13:48:15 +02:00
parent b5b116a14d
commit d65864adaf
10 changed files with 318 additions and 226 deletions

View File

@@ -22,13 +22,14 @@ template <typename T, int... Is> class C {
};
class R {
A<int, std::string, float> a1;
A<int, std::string, bool> a2;
[[maybe_unused]] A<int, std::string, float> a1;
[[maybe_unused]] A<int, std::string, bool> a2;
B<3, 2, 1> b1;
B<1, 1, 1, 1> b2;
[[maybe_unused]] B<3, 2, 1> b1;
[[maybe_unused]] B<1, 1, 1, 1> b2;
C<std::map<int, std::vector<std::vector<std::vector<std::string>>>>, 3, 3,
[[maybe_unused]] C<
std::map<int, std::vector<std::vector<std::vector<std::string>>>>, 3, 3,
3>
c1;
};

View File

@@ -24,7 +24,7 @@ TEST_CASE("t00012", "[test-case][class]")
REQUIRE(diagram->name == "t00012_class");
auto model = generate_class_diagram(db, diagram);
auto model = generate_class_diagram(*db, diagram);
REQUIRE(model->name() == "t00012_class");

View File

@@ -24,7 +24,7 @@ TEST_CASE("t00013", "[test-case][class]")
REQUIRE(diagram->name == "t00013_class");
auto model = generate_class_diagram(db, diagram);
auto model = generate_class_diagram(*db, diagram);
REQUIRE(model->name() == "t00013_class");
REQUIRE(model->should_include("clanguml::t00013::A"));
@@ -56,8 +56,8 @@ TEST_CASE("t00013", "[test-case][class]")
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("F<int>")));
REQUIRE_THAT(puml, IsDependency(_A("R"), _A("F<int>")));
REQUIRE_THAT(puml, IsInstantiation(_A("ABCD::F<T>"), _A("ABCD::F<int>")));
REQUIRE_THAT(puml, IsDependency(_A("R"), _A("ABCD::F<int>")));
REQUIRE_THAT(puml,
IsInstantiation(_A("G<T,Args...>"), _A("G<int,float,std::string>")));

View File

@@ -200,8 +200,8 @@ using namespace clanguml::test::matchers;
#include "t00009/test_case.h"
#include "t00010/test_case.h"
#include "t00011/test_case.h"
//#include "t00012/test_case.h"
//#include "t00013/test_case.h"
#include "t00012/test_case.h"
#include "t00013/test_case.h"
//#include "t00014/test_case.h"
//#include "t00015/test_case.h"
//#include "t00016/test_case.h"