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

Function TestIndexPathForId

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

Source from the content-addressed store, hash-verified

64}
65
66func TestIndexPathForId(t *testing.T) {
67 i := setupIndex("/foo")
68 if path := i.pathForID(1234); path != "/foo/1234.dat" {
69 t.Fatalf("unpexpected path: %s", path)
70 }
71}
72
73func TestIndexPathFor(t *testing.T) {
74 i := setupIndex("/foo")

Callers

nothing calls this directly

Calls 2

setupIndexFunction · 0.85
pathForIDMethod · 0.80

Tested by

no test coverage detected