Fixed formatting
This commit is contained in:
@@ -40,7 +40,8 @@ TEST_CASE("t20001", "[test-case][sequence]")
|
||||
|
||||
REQUIRE_THAT(puml, HasCall(_A("A"), "log_result(int)"));
|
||||
REQUIRE_THAT(puml, HasCall(_A("B"), _A("A"), "log_result(int)"));
|
||||
REQUIRE_THAT(puml, HasCallWithResponse(_A("B"), _A("A"), "add3(int,int,int)"));
|
||||
REQUIRE_THAT(
|
||||
puml, HasCallWithResponse(_A("B"), _A("A"), "add3(int,int,int)"));
|
||||
REQUIRE_THAT(puml, HasCall(_A("A"), "add(int,int)"));
|
||||
REQUIRE_THAT(puml, !HasCall(_A("A"), _A("detail::C"), "add(int,int)"));
|
||||
|
||||
|
||||
@@ -68,7 +68,6 @@ TEST_CASE("t20012", "[test-case][sequence]")
|
||||
|
||||
REQUIRE_THAT(puml, HasCall(_A("tmain()"), _A("D"), "add5(int)"));
|
||||
|
||||
|
||||
save_puml(
|
||||
"./" + config.output_directory() + "/" + diagram->name + ".puml", puml);
|
||||
}
|
||||
@@ -4,13 +4,9 @@ namespace clanguml {
|
||||
namespace t20014 {
|
||||
|
||||
template <typename T, typename F> struct C {
|
||||
F c1(F i, F j) {
|
||||
return c_.b1(i, j);
|
||||
}
|
||||
F c1(F i, F j) { return c_.b1(i, j); }
|
||||
|
||||
F c2(F i, F j){
|
||||
return c_.b2(i, j);
|
||||
}
|
||||
F c2(F i, F j) { return c_.b2(i, j); }
|
||||
|
||||
T c_;
|
||||
};
|
||||
|
||||
@@ -33,7 +33,7 @@ TEST_CASE("t20014", "[test-case][sequence]")
|
||||
|
||||
REQUIRE_THAT(puml, StartsWith("@startuml"));
|
||||
REQUIRE_THAT(puml, EndsWith("@enduml\n"));
|
||||
|
||||
|
||||
// Check if all calls exist
|
||||
REQUIRE_THAT(puml, HasCall(_A("tmain()"), _A("B"), "b1(int,int)"));
|
||||
REQUIRE_THAT(puml, HasCall(_A("B"), _A("A"), "a1(int,int)"));
|
||||
|
||||
@@ -2,7 +2,7 @@ namespace clanguml {
|
||||
namespace t20016 {
|
||||
struct A {
|
||||
void a1(int a) { }
|
||||
template <typename T> T a2(const T &a) { return a;}
|
||||
template <typename T> T a2(const T &a) { return a; }
|
||||
};
|
||||
|
||||
template <typename T> struct B {
|
||||
@@ -13,7 +13,8 @@ template <typename T> struct B {
|
||||
A a_;
|
||||
};
|
||||
|
||||
void tmain() {
|
||||
void tmain()
|
||||
{
|
||||
B<long> b;
|
||||
|
||||
b.b1(1);
|
||||
|
||||
@@ -45,8 +45,7 @@ TEST_CASE("t20017", "[test-case][sequence]")
|
||||
REQUIRE_THAT(puml,
|
||||
HasCall(_A("t20017.cc"), _A("include/t20017_b.h"), "b1(int,int)"));
|
||||
REQUIRE_THAT(puml,
|
||||
HasCall(
|
||||
_A("t20017.cc"), _A("include/t20017_b.h"), "b2<int>(int,int)"));
|
||||
HasCall(_A("t20017.cc"), _A("include/t20017_b.h"), "b2<int>(int,int)"));
|
||||
REQUIRE_THAT(puml, HasExitpoint(_A("t20017.cc")));
|
||||
|
||||
save_puml(
|
||||
|
||||
@@ -79,19 +79,26 @@ template <typename T, typename... Ts> constexpr bool has_type() noexcept
|
||||
return (std::is_same_v<T, Ts> || ... || false);
|
||||
}
|
||||
|
||||
struct Public { };
|
||||
struct Public {
|
||||
};
|
||||
|
||||
struct Protected { };
|
||||
struct Protected {
|
||||
};
|
||||
|
||||
struct Private { };
|
||||
struct Private {
|
||||
};
|
||||
|
||||
struct Abstract { };
|
||||
struct Abstract {
|
||||
};
|
||||
|
||||
struct Static { };
|
||||
struct Static {
|
||||
};
|
||||
|
||||
struct Const { };
|
||||
struct Const {
|
||||
};
|
||||
|
||||
struct Default { };
|
||||
struct Default {
|
||||
};
|
||||
|
||||
struct HasCallWithResultMatcher : ContainsMatcher {
|
||||
HasCallWithResultMatcher(
|
||||
|
||||
Reference in New Issue
Block a user