Removed dead code and improve test coverage
This commit is contained in:
@@ -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 }}'
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user