MCPcopy
hub / github.com/perkeep/perkeep / HashName

Method HashName

pkg/blob/ref.go:125–130  ·  view source on GitHub ↗

HashName returns the lowercase hash function name of the reference. It panics if r is zero.

()

Source from the content-addressed store, hash-verified

123// HashName returns the lowercase hash function name of the reference.
124// It panics if r is zero.
125func (r Ref) HashName() string {
126 if r.digest == nil {
127 panic("HashName called on invalid Ref")
128 }
129 return r.digest.digestName()
130}
131
132// Digest returns the lower hex digest of the blobref, without
133// the e.g. "sha224-" prefix. It panics if r is zero.

Callers 4

blobFileBaseNameFunction · 0.80
blobDirectoryMethod · 0.80
IsDirFunction · 0.80
ReadDirAllMethod · 0.80

Calls 1

digestNameMethod · 0.65

Tested by

no test coverage detected