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 CallLogger
- 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 (f *FileMock) Sync() 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]any
StatArgs []string
RenameArgs [][2]string
RemoveArgs []string
JoinArgs [][]string
CallLogger CallLogger
}
type CallLogger ¶
type CallLogger struct {
Calls []string
}
func (*CallLogger) Log ¶
func (l *CallLogger) Log(call string, args 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
Click to show internal directories.
Click to hide internal directories.