Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/celer-pkg/celer
/ computeHash
Function
computeHash
pkgcache/cache_dev_artifact_test.go:51–53 ·
view source on GitHub ↗
(meta string)
Source
from the content-addressed store, hash-verified
49
}
50
51
func
computeHash(meta string) string {
52
return
fmt.Sprintf(
"%x"
, sha256.Sum256([]byte(meta)))
53
}
54
55
// ---- Store tests ----
56
Callers
6
TestDevStore_ArchiveCreated
Function · 0.85
TestDevStore_SameMetaIsIdempotent
Function · 0.85
TestDevRestore_CacheHit
Function · 0.85
TestDevRestore_TamperedMetaFails
Function · 0.85
TestDevRestore_OverwritesExistingPackageDir
Function · 0.85
TestDevStoreRestore_RoundTrip
Function · 0.85
Calls
1
Sprintf
Method · 0.80
Tested by
no test coverage detected