Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit
/ test_adds
Function
test_adds
tests/envcontext_test.py:28–29 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
26
27
28
def
test_adds():
29
_test(before={}, patch=[(
'foo'
,
'bar'
)], expected={
'foo'
:
'bar'
})
30
31
32
def
test_overrides():
Callers
nothing calls this directly
Calls
1
_test
Function · 0.85
Tested by
no test coverage detected