Fixed up to t00013
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
@@ -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>")));
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user