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

Function test_discover_repo

test/test_repository.py:696–700  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

694
695
696def test_discover_repo(tmp_path: Path) -> None:
697 repo = init_repository(tmp_path, False)
698 subdir = tmp_path / 'test1' / 'test2'
699 subdir.mkdir(parents=True)
700 assert repo.path == discover_repository(str(subdir))
701
702
703def test_discover_repo_aspath(tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 2

init_repositoryFunction · 0.90
discover_repositoryFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…