Removed dead code and improve test coverage

This commit is contained in:
Bartek Kryza
2023-01-18 21:32:21 +01:00
parent 00b9321034
commit a9f793e407
30 changed files with 98 additions and 174 deletions

View File

@@ -15,7 +15,7 @@ diagrams:
- clanguml::t30001
plantuml:
before:
- "' t30001 test package diagram"
- "' t30001 test diagram of type {{ diagram.type }}"
after:
- 'note right of {{ alias("A::AA::AAA") }}: A AAA note...'
- '{% set e=element("A::AA") %} note top of {{ alias("A::AA") }} : {{ e.comment.formatted }}'

View File

@@ -43,7 +43,7 @@ TEST_CASE("t30001", "[test-case][package]")
REQUIRE_THAT(puml, IsPackage("AAA"));
// TODO: Fix _A() to handle fully qualified names, right
// now it only finds the first element with unqalified
// now it only finds the first element with unqualified
// name match
REQUIRE_THAT(
puml, HasNote(_A("AA"), "top", "This is namespace AA in namespace A"));
@@ -62,6 +62,8 @@ TEST_CASE("t30001", "[test-case][package]")
clanguml::util::get_git_commit()),
"BBB"));
REQUIRE_THAT(puml, HasComment("t30001 test diagram of type package"));
save_puml(
"./" + config.output_directory() + "/" + diagram->name + ".puml", puml);
}