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

Function test_mode

test/test_index.py:171–178  ·  view source on GitHub ↗

Testing that we can access an index entry mode.

(testrepo: Repository)

Source from the content-addressed store, hash-verified

169
170
171def test_mode(testrepo: Repository) -> None:
172 """
173 Testing that we can access an index entry mode.
174 """
175 index = testrepo.index
176
177 hello_mode = index['hello.txt'].mode
178 assert hello_mode == 33188
179
180
181def test_bare_index(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…