MCPcopy Create free account
hub / github.com/catchorg/Catch2 / EndsWithMatcher

Method EndsWithMatcher

extras/catch_amalgamated.cpp:9020–9020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9018
9019
9020 EndsWithMatcher::EndsWithMatcher( CasedString const& comparator ) : StringMatcherBase( "ends with"_sr, comparator ) {}
9021
9022 bool EndsWithMatcher::match( std::string const& source ) const {
9023 return endsWith( m_comparator.adjustString( source ), m_comparator.m_str );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected