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

Function old_content

test/test_apply_diff.py:49–51  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

47
48@pytest.fixture
49def old_content(testrepo: Repository) -> str:
50 with (Path(testrepo.workdir) / 'hello.txt').open('rb') as f:
51 return f.read().decode('utf-8')
52
53
54@pytest.fixture

Callers

nothing calls this directly

Calls 2

openMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…