}
func checkFileCount(fs afero.Fs, dirname string, c *qt.C, expected int) {
- count, _, err := countFileaAndGetFilenames(fs, dirname)
+ count, _, err := countFilesAndGetFilenames(fs, dirname)
c.Assert(err, qt.IsNil)
c.Assert(count, qt.Equals, expected)
}
}
}
-func countFileaAndGetFilenames(fs afero.Fs, dirname string) (int, []string, error) {
+func countFilesAndGetFilenames(fs afero.Fs, dirname string) (int, []string, error) {
if fs == nil {
return 0, nil, errors.New("no fs")
}