Added hyperlink tests to class and package diagrams

This commit is contained in:
Bartek Kryza
2022-04-13 23:22:50 +02:00
parent 4dfb4aed57
commit 5b9906b026
2 changed files with 28 additions and 0 deletions

View File

@@ -48,6 +48,20 @@ TEST_CASE("t30001", "[test-case][package]")
REQUIRE_THAT(
puml, HasNote(_A("AA"), "top", "This is namespace AA in namespace A"));
REQUIRE_THAT(puml,
HasLink(_A("AAA"),
fmt::format("https://github.com/bkryza/clang-uml/blob/{}/tests/"
"t30001/t30001.cc#L6",
clanguml::util::get_git_commit()),
"AAA"));
REQUIRE_THAT(puml,
HasLink(_A("BBB"),
fmt::format("https://github.com/bkryza/clang-uml/blob/{}/tests/"
"t30001/t30001.cc#L8",
clanguml::util::get_git_commit()),
"BBB"));
save_puml(
"./" + config.output_directory() + "/" + diagram->name + ".puml", puml);
}