MCPcopy
hub / github.com/perkeep/perkeep / String

Method String

pkg/blob/ref.go:59–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57func (sr SizedRef) HashMatches(h hash.Hash) bool { return sr.Ref.HashMatches(h) }
58
59func (sr SizedRef) String() string {
60 return fmt.Sprintf("[%s; %d bytes]", sr.Ref.String(), sr.Size)
61}
62
63// digestType is an interface type, but any type implementing it must
64// be of concrete type [N]byte, so it supports equality with ==,

Callers 1

TestSizedBlobRefStringFunction · 0.95

Calls 1

StringMethod · 0.45

Tested by 1

TestSizedBlobRefStringFunction · 0.76