MCPcopy Create free account
hub / github.com/pytest-dev/pytest / evaluate

Function evaluate

testing/test_mark_expression.py:8–9  ·  view source on GitHub ↗
(input: str, matcher: Callable[[str], bool])

Source from the content-addressed store, hash-verified

6
7
8def evaluate(input: str, matcher: Callable[[str], bool]) -> bool:
9 return Expression.compile(input).evaluate(matcher)
10
11
12def test_empty_is_false() -> None:

Callers 7

test_empty_is_falseFunction · 0.85
test_basicFunction · 0.85
test_syntax_oddetiesFunction · 0.85
test_syntax_errorsFunction · 0.85
test_valid_identsFunction · 0.85
test_invalid_identsFunction · 0.85

Calls 2

evaluateMethod · 0.80
compileMethod · 0.80

Tested by

no test coverage detected