Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
8
def
evaluate(input: str, matcher: Callable[[str], bool]) -> bool:
9
return
Expression.compile(input).evaluate(matcher)
10
11
12
def
test_empty_is_false() -> None:
Callers
7
test_empty_is_false
Function · 0.85
test_basic
Function · 0.85
test_syntax_oddeties
Function · 0.85
test_backslash_not_treated_specially
Function · 0.85
test_syntax_errors
Function · 0.85
test_valid_idents
Function · 0.85
test_invalid_idents
Function · 0.85
Calls
2
evaluate
Method · 0.80
compile
Method · 0.80
Tested by
no test coverage detected