Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit-hooks
/ test_main
Function
test_main
tests/check_xml_test.py:15–17 ·
view source on GitHub ↗
(filename, expected_retval)
Source
from the content-addressed store, hash-verified
13
),
14
)
15
def
test_main(filename, expected_retval):
16
ret = main([get_resource_path(filename)])
17
assert ret == expected_retval
Callers
nothing calls this directly
Calls
2
main
Function · 0.90
get_resource_path
Function · 0.90
Tested by
no test coverage detected