Home
last modified time | relevance | path

Searched refs:AssertionInfoMatcher (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/libcxx/test/support/
H A Dcheck_assertion.h35 struct AssertionInfoMatcher { struct
40 …constexpr AssertionInfoMatcher() : is_empty_(true), msg_(any_msg, __builtin_strlen(any_msg)), file… in AssertionInfoMatcher() argument
41 constexpr AssertionInfoMatcher(const char* msg, const char* file = any_file, int line = any_line)
105 static constexpr AssertionInfoMatcher AnyMatcher(AssertionInfoMatcher::any_msg); argument
107 inline AssertionInfoMatcher& GlobalMatcher() { in GlobalMatcher()
108 static AssertionInfoMatcher GMatch; in GlobalMatcher()
133 DeathTest(AssertionInfoMatcher const& Matcher) : matcher_(Matcher) {} in DeathTest()
230 AssertionInfoMatcher matcher_;
259 inline bool ExpectDeath(const char* stmt, Func&& func, AssertionInfoMatcher Matcher) { in ExpectDeath()
300 …expr, message) assert((ExpectDeath(#expr, [&]() { (void)(expr); }, AssertionInfoMatcher(message))))
/llvm-project-15.0.7/libcxx/test/support/test.support/
H A Dtest_check_assertion.pass.cpp21 …onst char* stmt, Func&& func, DeathTest::ResultKind ExpectResult, AssertionInfoMatcher Matcher = A… in TestDeathTest()
47 AssertionInfoMatcher ExpectMatch("my message"); in test_no_match_found()