class FuzzyMatcher
Defined at line 16 of file ../../src/developer/debug/e2e_tests/fuzzy_matcher.h
A helper class to match output sequentially as |MatchesLine| is called repeatedly.
Public Methods
bool MatchesLine (const std::vector<std::string_view> & substrs, bool allow_out_of_order)
The content should contain a line that matches the given substrings.
|allow_out_of_order| indicates that |pattern| may appear anywhere in |content_|.
Note that this method will consume the content, so a subsequent call may return differently.
Defined at line 15 of file ../../src/developer/debug/e2e_tests/fuzzy_matcher.cc
void FuzzyMatcher (const std::string & content)
Defined at line 18 of file ../../src/developer/debug/e2e_tests/fuzzy_matcher.h
bool MatchesLine (std::string_view pattern, bool allow_out_of_order)
This variant takes a pattern string, which contains "??" that can match everything.
|allow_out_of_order| indicates that |pattern| may appear anywhere in |content_|.
Defined at line 40 of file ../../src/developer/debug/e2e_tests/fuzzy_matcher.cc