MCPcopy
hub / github.com/direnv/direnv / Check

Method Check

internal/cmd/file_times.go:91–102  ·  view source on GitHub ↗

Check validates all the recorded file times

()

Source from the content-addressed store, hash-verified

89
90// Check validates all the recorded file times
91func (times *FileTimes) Check() (err error) {
92 if len(*times.list) == 0 {
93 return checkFailed{"Times list is empty"}
94 }
95 for idx := range *times.list {
96 err = (*times.list)[idx].Check()
97 if err != nil {
98 return
99 }
100 }
101 return
102}
103
104// CheckOne compares notes between the given path and the recorded times
105func (times *FileTimes) CheckOne(path string) (err error) {

Callers 5

cmdEditActionFunction · 0.95
TestCheckPassesFunction · 0.95
TestCheckStaleFunction · 0.95
TestCheckAppearedFunction · 0.95
TestCheckGoneFunction · 0.95

Calls 1

CheckMethod · 0.45

Tested by 4

TestCheckPassesFunction · 0.76
TestCheckStaleFunction · 0.76
TestCheckAppearedFunction · 0.76
TestCheckGoneFunction · 0.76