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

Function test_is_squash_merge

tests/commands/run_test.py:500–506  ·  view source on GitHub ↗
(cap_out, store, repo_with_passing_hook)

Source from the content-addressed store, hash-verified

498
499
500def test_is_squash_merge(cap_out, store, repo_with_passing_hook):
501 args = run_opts(is_squash_merge='1')
502 environ: MutableMapping[str, str] = {}
503 ret, printed = _do_run(
504 cap_out, store, repo_with_passing_hook, args, environ,
505 )
506 assert environ['PRE_COMMIT_IS_SQUASH_MERGE'] == '1'
507
508
509def test_rewrite_command(cap_out, store, repo_with_passing_hook):

Callers

nothing calls this directly

Calls 2

run_optsFunction · 0.90
_do_runFunction · 0.85

Tested by

no test coverage detected