MCPcopy
hub / github.com/PeerDB-io/peerdb / TestReadMissingFileToBytes

Function TestReadMissingFileToBytes

flow/e2eshared/e2eshared_test.go:12–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestReadMissingFileToBytes(t *testing.T) {
13 if _, err := ReadFileToBytes("missing"); !errors.Is(err, os.ErrNotExist) {
14 t.Error("ReadFileToBytes expected to fail on missing files")
15 }
16}
17
18func TestInequalRecordCountsInequal(t *testing.T) {
19 if CheckQRecordEquality(t,

Callers

nothing calls this directly

Calls 2

ReadFileToBytesFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected