Lines Matching defs:MockFs
177 type MockFs struct { struct
179 viewId string //
180 deviceNumber uint64
183 root mockDir
184 Clock *Clock
185 workDir string
186 nextInodeNumber uint64
189 StatCalls []string
190 ReadDirCalls []string
191 aggregatesLock sync.Mutex
232 func (m *MockFs) resolve(path string, followLastLink bool) (result string, err error) {
242 …ockFs) followLinks(path string, followLastLink bool, count int) (canonicalPath string, err error) {
295 func (m *MockFs) followLink(link *mockLink, parentPath string) (result string) {
299 func (m *MockFs) getFile(parentDir *mockDir, fileName string) (file *mockFile, err error) {
328 func (m *MockFs) getInode(parentDir *mockDir, name string) (inode *mockInode, err error) {
349 func (m *MockFs) Open(path string) (io.ReadCloser, error) {
413 func (m *MockFs) dirToFileInfo(d *mockDir, path string) (info *mockFileInfo) {
426 func (m *MockFs) fileToFileInfo(f *mockFile, path string) (info *mockFileInfo) {
438 func (m *MockFs) linkToFileInfo(l *mockLink, path string) (info *mockFileInfo) {
450 func (m *MockFs) Lstat(path string) (stats os.FileInfo, err error) {
493 func (m *MockFs) Stat(path string) (stats os.FileInfo, err error) {
503 func (m *MockFs) InodeNumber(info os.FileInfo) (number uint64, err error) {
510 func (m *MockFs) DeviceNumber(info os.FileInfo) (number uint64, err error) {
517 func (m *MockFs) PermTime(info os.FileInfo) (when time.Time, err error) {
526 func (m *MockFs) ReadDir(path string) (contents []DirEntryInfo, err error) {
565 func (m *MockFs) Rename(sourcePath string, destPath string) error {
679 func (m *MockFs) newInodeNumber() uint64 {
685 func (m *MockFs) WriteFile(filePath string, data []byte, perm os.FileMode) error {
728 func (m *MockFs) newFile() *mockFile {
736 func (m *MockFs) newDir() *mockDir {
748 func (m *MockFs) newLink(target string) *mockLink {
758 func (m *MockFs) MkDirs(path string) error {
764 func (m *MockFs) getDir(path string, createIfMissing bool) (dir *mockDir, err error) {
813 func (m *MockFs) Remove(path string) (err error) {
863 func (m *MockFs) Symlink(oldPath string, newPath string) (err error) {
885 func (m *MockFs) RemoveAll(path string) (err error) {
934 func (m *MockFs) SetReadable(path string, readable bool) error {
942 func (m *MockFs) SetReadErr(path string, readErr error) error {
969 func (m *MockFs) ClearMetrics() {
974 func (m *MockFs) ViewId() (id string) {
978 func (m *MockFs) SetViewId(id string) {
981 func (m *MockFs) SetDeviceNumber(deviceNumber uint64) {