mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-16 18:15:42 +02:00
First cut of new filtering mechanism
This commit is contained in:
@@ -74,6 +74,10 @@ namespace Catch {
|
||||
inline void forEach( const ContainerT& container, Function function ) {
|
||||
std::for_each( container.begin(), container.end(), function );
|
||||
}
|
||||
|
||||
inline bool startsWith( const std::string& s, const std::string& prefix ) {
|
||||
return s.size() >= prefix.size() && s.substr( 0, prefix.size() ) == prefix;
|
||||
}
|
||||
|
||||
struct SourceLineInfo {
|
||||
|
||||
|
Reference in New Issue
Block a user