Updated test cases documentation
This commit is contained in:
@@ -4,9 +4,6 @@ diagrams:
|
||||
t00048_class:
|
||||
type: class
|
||||
glob:
|
||||
# - ../../tests/t00048/*.cc
|
||||
# - ../../tests/t00048/t00048.cc
|
||||
#
|
||||
- ../../tests/t00048/b_t00048.cc
|
||||
- ../../tests/t00048/a_t00048.cc
|
||||
using_namespace: clanguml::t00048
|
||||
|
||||
@@ -44,28 +44,10 @@ TEST_CASE("t00048", "[test-case][class]")
|
||||
REQUIRE_THAT(puml, IsClassTemplate("ATemplate", "T"));
|
||||
REQUIRE_THAT(puml, IsClassTemplate("BTemplate", "T"));
|
||||
|
||||
// Check if all enums exist
|
||||
// REQUIRE_THAT(puml, IsEnum(_A("Lights")));
|
||||
|
||||
// Check if all inner classes exist
|
||||
// REQUIRE_THAT(puml, IsInnerClass(_A("A"), _A("AA")));
|
||||
|
||||
// Check if all inheritance relationships exist
|
||||
REQUIRE_THAT(puml, IsBaseClass(_A("Base"), _A("A")));
|
||||
REQUIRE_THAT(puml, IsBaseClass(_A("Base"), _A("B")));
|
||||
|
||||
// Check if all methods exist
|
||||
// REQUIRE_THAT(puml, (IsMethod<Public, Const>("foo")));
|
||||
|
||||
// Check if all fields exist
|
||||
// REQUIRE_THAT(puml, (IsField<Private>("private_member", "int")));
|
||||
|
||||
// Check if all relationships exist
|
||||
// REQUIRE_THAT(puml, IsAssociation(_A("D"), _A("A"), "-as"));
|
||||
// REQUIRE_THAT(puml, IsDependency(_A("R"), _A("B")));
|
||||
// REQUIRE_THAT(puml, IsAggregation(_A("R"), _A("D")));
|
||||
// REQUIRE_THAT(puml, IsComposition(_A("R"), _A("D")));
|
||||
// REQUIRE_THAT(puml, IsInstantiation(_A("ABCD::F<T>"), _A("F<int>")));
|
||||
|
||||
save_puml(
|
||||
"./" + config.output_directory() + "/" + diagram->name + ".puml", puml);
|
||||
|
||||
@@ -138,6 +138,9 @@ test_cases:
|
||||
- name: t00047
|
||||
title: Test case for recursive variadic template
|
||||
description:
|
||||
- name: t00048
|
||||
title: Test case for unique entity id with multiple translation units
|
||||
description:
|
||||
Sequence diagrams:
|
||||
- name: t20001
|
||||
title: Basic sequence diagram test case
|
||||
|
||||
Reference in New Issue
Block a user