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

Function test_lookup

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

Source from the content-addressed store, hash-verified

90
91
92def test_lookup(repo: Repository) -> None:
93 assert repo.backend.lookup('refs/heads/does-not-exist') is None
94 assert repo.backend.lookup('refs/heads/master').name == 'refs/heads/master'
95
96
97def test_write(repo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

lookupMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…