Function matchesFilter
Checks if a test name is selected by the given filter
bool matchesFilter(
string text,
string filter
);
Example
matchesFilter returns true for "some test" and an empty filter
matchesFilter("some test", "") .should .equal(true);
Example
matchesFilter returns true for an empty text and an empty filter
matchesFilter("", "") .should .equal(true);
Example
matchesFilter returns false for "some test" and the filter "other"
matchesFilter("some test", "other") .should .equal(false);
Example
matchesFilter returns true for "some test" and the exact filter "=some test"
matchesFilter("some test", "=some test") .should .equal(true);
Example
matchesFilter returns true for "some test" and the regex filter for "some test" or "some case"
matchesFilter("some test", "/^some (test|case)$/") .should .equal(true);