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

Function test_hash

test/test_oid.py:93–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91
92
93def test_hash() -> None:
94 s = set()
95 s.add(Oid(raw=RAW))
96 s.add(Oid(hex=HEX))
97 assert len(s) == 1
98
99 s.add(Oid(hex='0000000000000000000000000000000000000000'))
100 s.add(Oid(hex='0000000000000000000000000000000000000001'))
101 assert len(s) == 3
102
103
104def test_bool() -> None:

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…