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

Function test_discover_repo_aspath

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

Source from the content-addressed store, hash-verified

701
702
703def test_discover_repo_aspath(tmp_path: Path) -> None:
704 repo = init_repository(Path(tmp_path), False)
705 subdir = Path(tmp_path) / 'test1' / 'test2'
706 subdir.mkdir(parents=True)
707 assert repo.path == discover_repository(subdir)
708
709
710def test_discover_repo_not_found() -> 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…