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

Function test_sorting

test/test_tree.py:98–102  ·  view source on GitHub ↗
(barerepo: Repository)

Source from the content-addressed store, hash-verified

96
97
98def test_sorting(barerepo: Repository) -> None:
99 tree_a = barerepo['18e2d2e9db075f9eb43bcb2daa65a2867d29a15e']
100 assert isinstance(tree_a, Tree)
101 assert list(tree_a) == sorted(reversed(list(tree_a)), key=pygit2.tree_entry_key)
102 assert list(tree_a) != reversed(list(tree_a))
103
104
105def test_read_subtree(barerepo: 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…