MCPcopy
hub / github.com/perkeep/perkeep / Valid

Method Valid

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

Source from the content-addressed store, hash-verified

194const hexDigit = "0123456789abcdef"
195
196func (r Ref) Valid() bool { return r.digest != nil }
197
198func (r Ref) IsSupported() bool {
199 if !r.Valid() {

Callers 15

DomIDMethod · 0.95
IsSupportedMethod · 0.95
MarshalJSONMethod · 0.95
LessMethod · 0.95
matchMethod · 0.95
mergedEnumerateFunction · 0.95
CheckEnumerateFunction · 0.95
StreamBlobsMethod · 0.95
parseStatResponseFunction · 0.45
StatBlobsMethod · 0.45
UploadFileMethod · 0.45
fileMapFromDuplicateMethod · 0.45

Calls

no outgoing calls

Tested by 7

TestParseFunction · 0.36
TestEqualityFunction · 0.36
TestJSONUnmarshalFunction · 0.36
TestBlobFromURLPathFunction · 0.36
testOutOfOrderIndexingFunction · 0.36
TestAsClaimAndAsShareFunction · 0.36
TestReaderForeachChunkFunction · 0.36