Fixed formatting
This commit is contained in:
@@ -9,10 +9,8 @@ template <typename T> T m2(T p) { return m3<T>(p); }
|
||||
|
||||
template <typename T> T m1(T p) { return m2<T>(p); }
|
||||
|
||||
template<> [[maybe_unused]] int m4<int>(int p) { return p+2; }
|
||||
template <> [[maybe_unused]] int m4<int>(int p) { return p + 2; }
|
||||
|
||||
int main() {
|
||||
return m1<int>(0);
|
||||
}
|
||||
int main() { return m1<int>(0); }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -122,18 +122,16 @@ struct HasCallWithResultMatcher : ContainsMatcher {
|
||||
ContainsMatcher HasCall(std::string const &from, std::string const &message,
|
||||
CaseSensitive::Choice caseSensitivity = CaseSensitive::Yes)
|
||||
{
|
||||
return ContainsMatcher(
|
||||
CasedString(fmt::format("{} -> {} : {}()", from, from, message),
|
||||
caseSensitivity));
|
||||
return ContainsMatcher(CasedString(
|
||||
fmt::format("{} -> {} : {}()", from, from, message), caseSensitivity));
|
||||
}
|
||||
|
||||
ContainsMatcher HasCall(std::string const &from, std::string const &to,
|
||||
std::string const &message,
|
||||
CaseSensitive::Choice caseSensitivity = CaseSensitive::Yes)
|
||||
{
|
||||
return ContainsMatcher(
|
||||
CasedString(fmt::format("{} -> {} : {}()", from, to, message),
|
||||
caseSensitivity));
|
||||
return ContainsMatcher(CasedString(
|
||||
fmt::format("{} -> {} : {}()", from, to, message), caseSensitivity));
|
||||
}
|
||||
|
||||
auto HasCallWithResponse(std::string const &from, std::string const &to,
|
||||
@@ -141,10 +139,9 @@ auto HasCallWithResponse(std::string const &from, std::string const &to,
|
||||
CaseSensitive::Choice caseSensitivity = CaseSensitive::Yes)
|
||||
{
|
||||
return HasCallWithResultMatcher(
|
||||
CasedString(fmt::format("{} -> {} : {}()", from, to, message),
|
||||
caseSensitivity),
|
||||
CasedString(
|
||||
fmt::format("{} --> {}", to, from), caseSensitivity));
|
||||
fmt::format("{} -> {} : {}()", from, to, message), caseSensitivity),
|
||||
CasedString(fmt::format("{} --> {}", to, from), caseSensitivity));
|
||||
}
|
||||
|
||||
struct AliasMatcher {
|
||||
|
||||
Reference in New Issue
Block a user