Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit
/ test_mapping_value
Function
test_mapping_value
tests/yaml_rewrite_test.py:39–42 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
37
38
39
def
test_mapping_value():
40
m = MappingValue(
's'
)
41
ret = [n.value
for
n in m.match(yaml_compose(
's: val\nt: val2'
))]
42
assert ret == [
'val'
]
43
44
45
def
test_sequence_item():
Callers
nothing calls this directly
Calls
2
match
Method · 0.95
MappingValue
Class · 0.90
Tested by
no test coverage detected