(barerepo: Repository)
| 115 | |
| 116 | |
| 117 | def test_lookup_blob(barerepo: Repository) -> None: |
| 118 | with pytest.raises(TypeError): |
| 119 | barerepo[123] # type: ignore |
| 120 | assert barerepo[BLOB_OID].id == BLOB_HEX |
| 121 | a = barerepo[BLOB_HEX] |
| 122 | assert b'a contents\n' == a.read_raw() |
| 123 | assert BLOB_HEX == a.id |
| 124 | assert int(ObjectType.BLOB) == a.type |
| 125 | |
| 126 | |
| 127 | def test_lookup_blob_prefix(barerepo: Repository) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…