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

Function test_has_unmerged_paths

tests/commands/run_test.py:527–530  ·  view source on GitHub ↗
(in_merge_conflict)

Source from the content-addressed store, hash-verified

525
526
527def test_has_unmerged_paths(in_merge_conflict):
528 assert _has_unmerged_paths() is True
529 cmd_output('git', 'add', '.')
530 assert _has_unmerged_paths() is False
531
532
533def test_merge_conflict(cap_out, store, in_merge_conflict):

Callers

nothing calls this directly

Calls 2

_has_unmerged_pathsFunction · 0.90
cmd_outputFunction · 0.90

Tested by

no test coverage detected