Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/go-git/go-git
/ Hash
Method
Hash
utils/merkletrie/noder/noder.go:17–17 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
15
// their hash.
16
type
Hasher
interface
{
17
Hash() []byte
18
}
19
20
// Equal functions take two hashers and return if they are equal.
Callers
15
TestNewFileEmpty
Method · 0.65
TestNewFileWithContents
Method · 0.65
TestDifferentContentsHaveDifferentHash
Method · 0.65
TestSameContentsHaveSameHash
Method · 0.65
HashEqual
Function · 0.65
calculateHash
Method · 0.65
TestNewDirectoryNoNameAndEmpty
Method · 0.65
TestNewDirectoryEmpty
Method · 0.65
TestEmptyDirsHaveSameHash
Method · 0.65
TestNewDirWithEmptyDir
Method · 0.65
TestNewDirWithOneEmptyFile
Method · 0.65
TestNewDirWithOneFile
Method · 0.65
Implementers
15
file
utils/merkletrie/internal/fsnoder/file
dir
utils/merkletrie/internal/fsnoder/dir.
node
utils/merkletrie/index/node.go
noderMock
utils/merkletrie/noder/noder_test.go
node
utils/merkletrie/filesystem/node.go
EncodedObject
storage/filesystem/dotgit/reader.go
Reference
plumbing/reference.go
MemoryObject
plumbing/memory.go
dummyObject
plumbing/cache/object_test.go
changeEntryWrapper
plumbing/object/patch.go
treeNoder
plumbing/object/treenoder.go
SortReadObject
plumbing/object/tree_test.go
Calls
no outgoing calls
Tested by
15
TestNewFileEmpty
Method · 0.52
TestNewFileWithContents
Method · 0.52
TestDifferentContentsHaveDifferentHash
Method · 0.52
TestSameContentsHaveSameHash
Method · 0.52
TestNewDirectoryNoNameAndEmpty
Method · 0.52
TestNewDirectoryEmpty
Method · 0.52
TestEmptyDirsHaveSameHash
Method · 0.52
TestNewDirWithEmptyDir
Method · 0.52
TestNewDirWithOneEmptyFile
Method · 0.52
TestNewDirWithOneFile
Method · 0.52
TestDirsWithSameFileHaveSameHash
Method · 0.52
TestDirsWithDifferentFileContentHaveDifferentHash
Method · 0.52