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

Method pathFor

storage/index.go:45–47  ·  view source on GitHub ↗
(record proto.Message)

Source from the content-addressed store, hash-verified

43}
44
45func (i *Index) pathFor(record proto.Message) string {
46 return i.pathForID(i.driver.GetID(record))
47}
48
49// WithDriver creates a new Index object with the specified storage.Driver
50// used to handle the specifics of the protobuf messages being handled

Callers 5

TestIndexPathForFunction · 0.80
TestIndexDeleteRecordFunction · 0.80
BenchmarkIndexPathForFunction · 0.80
TestOraclesDeleteFunction · 0.80
TestRecordsDeleteFunction · 0.80

Calls 2

pathForIDMethod · 0.95
GetIDMethod · 0.65

Tested by 5

TestIndexPathForFunction · 0.64
TestIndexDeleteRecordFunction · 0.64
BenchmarkIndexPathForFunction · 0.64
TestOraclesDeleteFunction · 0.64
TestRecordsDeleteFunction · 0.64