MCPcopy Index your code
hub / github.com/dagger/dagger / newHashFromStat

Function newHashFromStat

engine/filesync/hash.go:19–23  ·  view source on GitHub ↗
(stat *fstypes.Stat)

Source from the content-addressed store, hash-verified

17}
18
19func newHashFromStat(stat *fstypes.Stat) hash.Hash {
20 h := &statHash{Hash: xxh3.New(), stat: stat}
21 h.Reset()
22 return h
23}
24
25type statHash struct {
26 hash.Hash

Callers 5

GetPreviousChangeMethod · 0.85
MkdirMethod · 0.85
SymlinkMethod · 0.85
HardlinkMethod · 0.85
WriteFileMethod · 0.85

Calls 2

ResetMethod · 0.95
NewMethod · 0.65

Tested by

no test coverage detected