Lines Matching refs:files
32 func NewMockFs(files map[string][]byte) *MockFs {
41 for path, bytes := range files {
223 files map[string]*mockFile member
295 file, isFile := parentDir.files[fileName]
324 file, isFile := parentDir.files[name]
472 file, fileExists := dir.files[baseName]
539 for name, file := range dir.files {
601 file, sourceIsFile := sourceParentDir.files[sourceBase]
616 _, destWasFile := destParentDir.files[destBase]
637 delete(destParentDir.files, destBase)
647 destParentDir.files[destBase] = file
648 delete(sourceParentDir.files, sourceBase)
693 _, exists := parentDir.files[baseName]
696 parentDir.files[baseName] = m.newFile()
698 readErr := parentDir.files[baseName].readErr
707 file := parentDir.files[baseName]
724 files: make(map[string]*mockFile, 0),
774 _, fileExists := parent.files[leaf]
834 _, isFile := parentDir.files[leaf]
842 delete(parentDir.files, leaf)
898 _, isFile := parentDir.files[leaf]