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

Function test_n1_some_error_code

tests/commands/hazmat_test.py:92–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90
91
92def test_n1_some_error_code():
93 ret = main((
94 'n1', sys.executable, '-c',
95 'import sys; raise SystemExit(sys.argv[1] == "error")',
96 '--',
97 'ok', 'error', 'ok',
98 ))
99 assert ret == 1

Callers

nothing calls this directly

Calls 1

mainFunction · 0.90

Tested by

no test coverage detected