MCPcopy
hub / github.com/cloudfoundry/cli / NewSha1Checksum

Function NewSha1Checksum

util/checksum.go:22–26  ·  view source on GitHub ↗
(filepath string)

Source from the content-addressed store, hash-verified

20}
21
22func NewSha1Checksum(filepath string) Sha1Checksum {
23 return &sha1Checksum{
24 filepath: filepath,
25 }
26}
27
28func (c *sha1Checksum) CheckSha1(targetSha1 string) bool {
29 sha1, err := c.ComputeFileSha1()

Callers 5

InitMethod · 0.92
ExecuteMethod · 0.92
NewDependencyFunction · 0.92
CalculateSHA1Method · 0.92
checksum_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected