Fixed include diagram test cases

This commit is contained in:
Bartek Kryza
2022-08-03 01:05:01 +02:00
parent cd9d9cf5a7
commit 392be99055
19 changed files with 382 additions and 98 deletions

View File

@@ -9,13 +9,13 @@ diagrams:
- ../../tests/t40001/**/*.cc
- ../../tests/t40001/**/*.h
# Render the paths relative to this directory
relative_to: ../../tests/t40001
relative_to: ../../../tests/t40001
# Include also external system headers
generate_system_headers: true
include:
# Include only headers belonging to these paths
paths:
- ../../tests/t40001
- ../../../tests/t40001
plantuml:
before:
- "' t40001 test include diagram"

View File

@@ -24,7 +24,7 @@ TEST_CASE("t40001", "[test-case][package]")
REQUIRE(diagram->name == "t40001_include");
auto model = generate_include_diagram(db, diagram);
auto model = generate_include_diagram(*db, diagram);
REQUIRE(model->name() == "t40001_include");

View File

@@ -9,15 +9,15 @@ diagrams:
- ../../tests/t40002/**/*.cc
- ../../tests/t40002/**/*.h
# Render the paths relative to this directory
relative_to: ../../tests/t40002
relative_to: ../../../tests/t40002
include:
# Include only files belonging to these paths
paths:
- ../../tests/t40002
- ../../../tests/t40002
exclude:
paths:
# Exclude single header
- ../../tests/t40002/include/lib2/lib2_detail.h
- ../../../tests/t40002/include/lib2/lib2_detail.h
plantuml:
before:
- "' t40002 test include diagram"

View File

@@ -24,7 +24,7 @@ TEST_CASE("t40002", "[test-case][package]")
REQUIRE(diagram->name == "t40002_include");
auto model = generate_include_diagram(db, diagram);
auto model = generate_include_diagram(*db, diagram);
REQUIRE(model->name() == "t40002_include");

View File

@@ -9,13 +9,14 @@ diagrams:
- ../../tests/t40003/include/**/*.h
- ../../tests/t40003/src/**/*.cc
# Render the paths relative to this directory
relative_to: ../../tests/t40003
relative_to: ../../../tests/t40003
include:
# Include only files belonging to these paths
# Include only files which depend on t1.h
dependants:
- ../../tests/t40003/include/dependants/t1.h
- ../../../tests/t40003/include/dependants/t1.h
# and dependencies of t2.cc
dependencies:
- ../../tests/t40003/src/dependencies/t2.cc
- ../../../tests/t40003/src/dependencies/t2.cc
plantuml:
before:
- "' t40003 test include diagram"

View File

@@ -24,7 +24,7 @@ TEST_CASE("t40003", "[test-case][package]")
REQUIRE(diagram->name == "t40003_include");
auto model = generate_include_diagram(db, diagram);
auto model = generate_include_diagram(*db, diagram);
REQUIRE(model->name() == "t40003_include");

View File

@@ -257,9 +257,9 @@ using namespace clanguml::test::matchers;
////
//// Include diagram tests
////
//#include "t40001/test_case.h"
//#include "t40002/test_case.h"
//#include "t40003/test_case.h"
#include "t40001/test_case.h"
#include "t40002/test_case.h"
#include "t40003/test_case.h"
//
////
//// Other tests (e.g. configuration file)