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

Function read_content

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

Source from the content-addressed store, hash-verified

34
35
36def read_content(testrepo: Repository) -> str:
37 with (Path(testrepo.workdir) / 'hello.txt').open('rb') as f:
38 return f.read().decode('utf-8')
39
40
41@pytest.fixture

Callers 6

test_apply_diff_to_indexFunction · 0.85
test_apply_diff_to_bothFunction · 0.85

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…