MCPcopy
hub / github.com/go-git/go-git / Sum

Method Sum

plumbing/hash.go:57–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func (h Hasher) Sum() (hash Hash) {
58 copy(hash[:], h.Hash.Sum(nil))
59 return
60}
61
62// HashesSort sorts a slice of Hashes in increasing order.
63func HashesSort(a []Hash) {

Callers 15

TestRacyGitMethod · 0.95
TestZeroIndexModTimeMethod · 0.95
TestNewHasherMethod · 0.95
ComputeHashFunction · 0.95
indexObjectsMethod · 0.95
patchDeltaWriterFunction · 0.95
HashMethod · 0.80
calculateHashMethod · 0.80
TestSha1CollisionFunction · 0.80
readExtensionsMethod · 0.80

Implementers 15

fileutils/merkletrie/internal/fsnoder/file
dirutils/merkletrie/internal/fsnoder/dir.
nodeutils/merkletrie/index/node.go
noderMockutils/merkletrie/noder/noder_test.go
nodeutils/merkletrie/filesystem/node.go
EncodedObjectstorage/filesystem/dotgit/reader.go
Referenceplumbing/reference.go
MemoryObjectplumbing/memory.go
dummyObjectplumbing/cache/object_test.go
changeEntryWrapperplumbing/object/patch.go
treeNoderplumbing/object/treenoder.go
SortReadObjectplumbing/object/tree_test.go

Calls

no outgoing calls

Tested by 12

TestRacyGitMethod · 0.76
TestZeroIndexModTimeMethod · 0.76
TestNewHasherMethod · 0.76
TestSha1CollisionFunction · 0.64
TestDecodeInvalidHashMethod · 0.64
TestDecodeV4StripLengthFunction · 0.64
FuzzParserFunction · 0.64
buildTestPackFunction · 0.64
buildMinimalPackFunction · 0.64