MCPcopy Create free account
hub / github.com/boyter/hashit / hasHash

Function hasHash

processor/processor.go:201–213  ·  view source on GitHub ↗

Check if a hash was supplied to the input so we know if we should calculate it

(hash string)

Source from the content-addressed store, hash-verified

199
200// Check if a hash was supplied to the input so we know if we should calculate it
201func hasHash(hash string) bool {
202 for _, x := range Hash {
203 if x == "all" {
204 return true
205 }
206
207 if x == hash {
208 return true
209 }
210 }
211
212 return false
213}

Callers 8

fileProcessorWorkerFunction · 0.85
processScannerFunction · 0.85
processStandardInputFunction · 0.85
processReadFileParallelFunction · 0.85
processReadFileFunction · 0.85
toSumFunction · 0.85
toHashOnlyFunction · 0.85
toTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected