Lines Matching refs:MockFs
32 func NewMockFs(files map[string][]byte) *MockFs {
34 fs := &MockFs{
177 type MockFs struct { struct
194 var _ FileSystem = (*MockFs)(nil)
232 func (m *MockFs) resolve(path string, followLastLink bool) (result string, err error) { argument
242 func (m *MockFs) followLinks(path string, followLastLink bool, count int) (canonicalPath string, er… argument
295 func (m *MockFs) followLink(link *mockLink, parentPath string) (result string) { argument
299 func (m *MockFs) getFile(parentDir *mockDir, fileName string) (file *mockFile, err error) { argument
328 func (m *MockFs) getInode(parentDir *mockDir, name string) (inode *mockInode, err error) { argument
349 func (m *MockFs) Open(path string) (io.ReadCloser, error) { argument
413 func (m *MockFs) dirToFileInfo(d *mockDir, path string) (info *mockFileInfo) { argument
426 func (m *MockFs) fileToFileInfo(f *mockFile, path string) (info *mockFileInfo) { argument
438 func (m *MockFs) linkToFileInfo(l *mockLink, path string) (info *mockFileInfo) { argument
450 func (m *MockFs) Lstat(path string) (stats os.FileInfo, err error) { argument
493 func (m *MockFs) Stat(path string) (stats os.FileInfo, err error) { argument
503 func (m *MockFs) InodeNumber(info os.FileInfo) (number uint64, err error) { argument
510 func (m *MockFs) DeviceNumber(info os.FileInfo) (number uint64, err error) { argument
517 func (m *MockFs) PermTime(info os.FileInfo) (when time.Time, err error) { argument
526 func (m *MockFs) ReadDir(path string) (contents []DirEntryInfo, err error) { argument
565 func (m *MockFs) Rename(sourcePath string, destPath string) error { argument
679 func (m *MockFs) newInodeNumber() uint64 { argument
685 func (m *MockFs) WriteFile(filePath string, data []byte, perm os.FileMode) error { argument
728 func (m *MockFs) newFile() *mockFile { argument
736 func (m *MockFs) newDir() *mockDir { argument
748 func (m *MockFs) newLink(target string) *mockLink { argument
758 func (m *MockFs) MkDirs(path string) error { argument
764 func (m *MockFs) getDir(path string, createIfMissing bool) (dir *mockDir, err error) { argument
813 func (m *MockFs) Remove(path string) (err error) { argument
863 func (m *MockFs) Symlink(oldPath string, newPath string) (err error) { argument
885 func (m *MockFs) RemoveAll(path string) (err error) { argument
934 func (m *MockFs) SetReadable(path string, readable bool) error { argument
942 func (m *MockFs) SetReadErr(path string, readErr error) error { argument
969 func (m *MockFs) ClearMetrics() { argument
974 func (m *MockFs) ViewId() (id string) { argument
978 func (m *MockFs) SetViewId(id string) { argument
981 func (m *MockFs) SetDeviceNumber(deviceNumber uint64) { argument