MCPcopy
hub / github.com/NVIDIA/aistore / checkFileCount

Function checkFileCount

ios/fsutils_test.go:76–84  ·  view source on GitHub ↗
(t *testing.T, dir string, n int)

Source from the content-addressed store, hash-verified

74}
75
76func checkFileCount(t *testing.T, dir string, n int) {
77 fileCount, err := GetFileCount(dir)
78 if err != nil {
79 t.Error(err)
80 }
81 if fileCount != n {
82 t.Fatalf("Expected %d files inside the directories", n)
83 }
84}

Callers 1

TestGetFilesCountFunction · 0.85

Calls 2

GetFileCountFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected