Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit-hooks
/ test_output
Function
test_output
tests/util_test.py:15–17 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
13
14
15
def
test_output():
16
ret = cmd_output(
'sh'
,
'-c'
,
'echo hi'
)
17
assert ret ==
'hi\n'
18
19
20
@pytest.mark.parametrize(
'out'
, (
'\0f1\0f2\0'
,
'\0f1\0f2'
,
'f1\0f2\0'
))
Callers
nothing calls this directly
Calls
1
cmd_output
Function · 0.90
Tested by
no test coverage detected