MCPcopy Create free account
hub / github.com/evilsocket/sum / TestIndexPathFor

Function TestIndexPathFor

storage/index_test.go:73–79  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

71}
72
73func TestIndexPathFor(t *testing.T) {
74 i := setupIndex("/foo")
75 testRecord.Id = 1234
76 if path := i.pathFor(&testRecord); path != "/foo/1234.dat" {
77 t.Fatalf("unpexpected path: %s", path)
78 }
79}
80
81func TestIndexForEach(t *testing.T) {
82 setupRecords(t, true, false)

Callers

nothing calls this directly

Calls 2

setupIndexFunction · 0.85
pathForMethod · 0.80

Tested by

no test coverage detected