Added option to skip redundant dependency relationships
This commit is contained in:
@@ -5,6 +5,7 @@ diagrams:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00031/t00031.cc
|
||||
skip_redundant_dependencies: false
|
||||
using_namespace:
|
||||
- clanguml::t00031
|
||||
include:
|
||||
|
||||
@@ -25,6 +25,8 @@ struct R {
|
||||
/// @uml{style[#green,dashed,thickness=4]}
|
||||
std::vector<B> bbb;
|
||||
|
||||
void add_b(B b) { bbb.push_back(b); }
|
||||
|
||||
/// @uml{style[#blue,dotted,thickness=8]}
|
||||
C<int> ccc;
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@ TEST_CASE("t00031", "[test-case][class]")
|
||||
REQUIRE_THAT(puml,
|
||||
IsCompositionWithStyle(
|
||||
_A("R"), _A("B"), "+bbb", "#green,dashed,thickness=4"));
|
||||
REQUIRE_THAT(puml, IsDependency(_A("R"), _A("B")));
|
||||
REQUIRE_THAT(puml,
|
||||
IsAggregationWithStyle(
|
||||
_A("R"), _A("C<int>"), "+ccc", "#blue,dotted,thickness=8"));
|
||||
|
||||
@@ -53,6 +53,14 @@ TEST_CASE("t00032", "[test-case][class]")
|
||||
puml, IsBaseClass(_A("B"), _A("Overload<TBase,int,A,B,C>")));
|
||||
REQUIRE_THAT(
|
||||
puml, IsBaseClass(_A("C"), _A("Overload<TBase,int,A,B,C>")));
|
||||
REQUIRE_THAT(
|
||||
puml, !IsDependency(_A("Overload<TBase,int,A,B,C>"), _A("TBase")));
|
||||
REQUIRE_THAT(
|
||||
puml, !IsDependency(_A("Overload<TBase,int,A,B,C>"), _A("A")));
|
||||
REQUIRE_THAT(
|
||||
puml, !IsDependency(_A("Overload<TBase,int,A,B,C>"), _A("B")));
|
||||
REQUIRE_THAT(
|
||||
puml, !IsDependency(_A("Overload<TBase,int,A,B,C>"), _A("C")));
|
||||
|
||||
save_puml(
|
||||
config.output_directory() + "/" + diagram->name + ".puml", puml);
|
||||
|
||||
Reference in New Issue
Block a user