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

Function _remove_config_assert_cleared

tests/commands/gc_test.py:31–36  ·  view source on GitHub ↗
(store, cap_out)

Source from the content-addressed store, hash-verified

29
30
31def _remove_config_assert_cleared(store, cap_out):
32 os.remove(C.CONFIG_FILE)
33 assert not gc(store)
34 assert _config_count(store) == 0
35 assert _repo_count(store) == 0
36 assert cap_out.get().splitlines()[-1] == '1 repo(s) removed.'
37
38
39def test_gc(tempdir_factory, store, in_git_dir, cap_out):

Callers 3

test_gcFunction · 0.85

Calls 4

gcFunction · 0.90
_config_countFunction · 0.85
_repo_countFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected