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

Function test_status_ignored

test/test_status.py:81–87  ·  view source on GitHub ↗
(
    dirtyrepo: Repository, ignored: bool, expected: set[str]
)

Source from the content-addressed store, hash-verified

79
80@pytest.mark.parametrize('ignored,expected', [(True, {'ignored'}), (False, set())])
81def test_status_ignored(
82 dirtyrepo: Repository, ignored: bool, expected: set[str]
83) -> None:
84 git_status = dirtyrepo.status(ignored=ignored)
85 assert {
86 file for file, status in git_status.items() if status & FileStatus.IGNORED
87 } == expected

Callers

nothing calls this directly

Calls 1

statusMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…