(odb: Odb)
| 90 | |
| 91 | |
| 92 | def test_read_header(odb: Odb) -> None: |
| 93 | with pytest.raises(TypeError): |
| 94 | odb.read_header(123) # type: ignore |
| 95 | utils.assertRaisesWithArg(KeyError, '1' * 40, odb.read_header, '1' * 40) |
| 96 | |
| 97 | ab = odb.read_header(BLOB_OID) |
| 98 | a = odb.read_header(BLOB_HEX) |
| 99 | assert ab == a |
| 100 | assert (ObjectType.BLOB, len(BLOB_CONTENTS)) == a |
| 101 | assert isinstance(a[0], ObjectType) |
| 102 | |
| 103 | |
| 104 | def test_write(odb: Odb) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…