Documentation
¶
Index ¶
- type BasicMock
- func (fs *BasicMock) Create(filename string) (billy.File, error)
- func (fs *BasicMock) Join(elem ...string) string
- func (fs *BasicMock) Open(filename string) (billy.File, error)
- func (fs *BasicMock) OpenFile(filename string, flag int, mode fs.FileMode) (billy.File, error)
- func (fs *BasicMock) Remove(filename string) error
- func (fs *BasicMock) Rename(target, link string) error
- func (fs *BasicMock) Stat(filename string) (os.FileInfo, error)
- type DirMock
- type FileMock
- func (*FileMock) Close() error
- func (*FileMock) Lock() error
- func (f *FileMock) Name() string
- func (*FileMock) ReadAt(_ []byte, _ int64) (int, error)
- func (*FileMock) Seek(_ int64, _ int) (int64, error)
- func (*FileMock) Stat() (fs.FileInfo, error)
- func (*FileMock) Truncate(_ int64) error
- func (*FileMock) Unlock() error
- func (*FileMock) WriteAt(_ []byte, _ int64) (int, error)
- type NoLockCapFs
- type OnlyReadCapFs
- type SymlinkMock
- type TempFileMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicMock ¶
type BasicMock struct { CreateArgs []string OpenArgs []string OpenFileArgs [][3]interface{} StatArgs []string RenameArgs [][2]string RemoveArgs []string JoinArgs [][]string }
type NoLockCapFs ¶
type NoLockCapFs struct {
BasicMock
}
func (*NoLockCapFs) Capabilities ¶
func (o *NoLockCapFs) Capabilities() billy.Capability
type OnlyReadCapFs ¶
type OnlyReadCapFs struct {
BasicMock
}
func (*OnlyReadCapFs) Capabilities ¶
func (o *OnlyReadCapFs) Capabilities() billy.Capability
type SymlinkMock ¶
type SymlinkMock struct { BasicMock LstatArgs []string SymlinkArgs [][2]string ReadlinkArgs []string }
func (*SymlinkMock) Symlink ¶
func (fs *SymlinkMock) Symlink(target, link string) error
type TempFileMock ¶
func (*TempFileMock) TempFile ¶
func (fs *TempFileMock) TempFile(dir, prefix string) (billy.File, error)
Click to show internal directories.
Click to hide internal directories.