MCPcopy Create free account
hub / github.com/libgit2/pygit2 / test_delete

Function test_delete

test/test_refdb_backend.py:115–118  ·  view source on GitHub ↗
(repo: Repository)

Source from the content-addressed store, hash-verified

113
114
115def test_delete(repo: Repository) -> None:
116 old = repo.backend.lookup('refs/heads/i18n')
117 repo.backend.delete('refs/heads/i18n', old.target, None)
118 assert not repo.backend.lookup('refs/heads/i18n')
119
120
121def test_compress(repo: Repository) -> None:

Callers

nothing calls this directly

Calls 2

lookupMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…