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

Function test_cmp

test/test_oid.py:74–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72
73
74def test_cmp() -> None:
75 oid1 = Oid(raw=RAW)
76
77 # Equal
78 oid2 = Oid(hex=HEX)
79 assert oid1 == oid2
80
81 # Not equal
82 oid2 = Oid(hex='15b648aec6ed045b5ca6f57f8b7831a8b4757299')
83 assert oid1 != oid2
84
85 # Other
86 assert oid1 < oid2
87 assert oid1 <= oid2
88 assert not oid1 == oid2
89 assert not oid1 > oid2
90 assert not oid1 >= oid2
91
92
93def test_hash() -> 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…