MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / test_arbitrary_bytes_hook

Function test_arbitrary_bytes_hook

tests/commands/run_test.py:176–181  ·  view source on GitHub ↗
(cap_out, store, tempdir_factory)

Source from the content-addressed store, hash-verified

174
175
176def test_arbitrary_bytes_hook(cap_out, store, tempdir_factory):
177 git_path = make_consuming_repo(tempdir_factory, 'arbitrary_bytes_repo')
178 with cwd(git_path):
179 _test_run(
180 cap_out, store, git_path, {}, (b'\xe2\x98\x83\xb2\n',), 1, True,
181 )
182
183
184def test_hook_that_modifies_but_returns_zero(cap_out, store, tempdir_factory):

Callers

nothing calls this directly

Calls 3

make_consuming_repoFunction · 0.90
cwdFunction · 0.90
_test_runFunction · 0.85

Tested by

no test coverage detected