MCPcopy
hub / github.com/perkeep/perkeep / statStr

Function statStr

pkg/fs/fs_test.go:408–417  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

406}
407
408func statStr(name string) string {
409 fi, err := os.Stat(name)
410 if os.IsNotExist(err) {
411 return "ENOENT"
412 }
413 if err != nil {
414 return "err=" + err.Error()
415 }
416 return fmt.Sprintf("file %v, size %d", fi.Mode(), fi.Size())
417}
418
419func TestRename(t *testing.T) {
420 condSkip(t)

Callers 1

TestRenameFunction · 0.85

Calls 4

ModeMethod · 0.80
StatMethod · 0.65
SizeMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected