mocks

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	mock.Mock
}

Environment is an autogenerated mock type for the Environment type

func (*Environment) GetString

func (_m *Environment) GetString(_a0 string) string

GetString provides a mock function with given fields: _a0

func (*Environment) IsSet

func (_m *Environment) IsSet(_a0 string) bool

IsSet provides a mock function with given fields: _a0

func (*Environment) SetConfigFile

func (_m *Environment) SetConfigFile(_a0 string)

SetConfigFile provides a mock function with given fields: _a0

type File

type File struct {
	mock.Mock
}

File is an autogenerated mock type for the File type

func (*File) Close

func (_m *File) Close() error

Close provides a mock function with given fields:

func (*File) Name

func (_m *File) Name() string

Name provides a mock function with given fields:

func (*File) Read

func (_m *File) Read(p []byte) (int, error)

Read provides a mock function with given fields: p

func (*File) ReadAt

func (_m *File) ReadAt(p []byte, off int64) (int, error)

ReadAt provides a mock function with given fields: p, off

func (*File) Readdir

func (_m *File) Readdir(count int) ([]os.FileInfo, error)

Readdir provides a mock function with given fields: count

func (*File) Readdirnames

func (_m *File) Readdirnames(n int) ([]string, error)

Readdirnames provides a mock function with given fields: n

func (*File) Seek

func (_m *File) Seek(offset int64, whence int) (int64, error)

Seek provides a mock function with given fields: offset, whence

func (*File) Stat

func (_m *File) Stat() (os.FileInfo, error)

Stat provides a mock function with given fields:

func (*File) Sync

func (_m *File) Sync() error

Sync provides a mock function with given fields:

func (*File) Truncate

func (_m *File) Truncate(size int64) error

Truncate provides a mock function with given fields: size

func (*File) Write

func (_m *File) Write(p []byte) (int, error)

Write provides a mock function with given fields: p

func (*File) WriteAt

func (_m *File) WriteAt(p []byte, off int64) (int, error)

WriteAt provides a mock function with given fields: p, off

func (*File) WriteString

func (_m *File) WriteString(s string) (int, error)

WriteString provides a mock function with given fields: s

type Fs

type Fs struct {
	mock.Mock
}

Fs is an autogenerated mock type for the Fs type

func (*Fs) Chmod

func (_m *Fs) Chmod(name string, mode os.FileMode) error

Chmod provides a mock function with given fields: name, mode

func (*Fs) Chtimes

func (_m *Fs) Chtimes(name string, atime time.Time, mtime time.Time) error

Chtimes provides a mock function with given fields: name, atime, mtime

func (*Fs) Create

func (_m *Fs) Create(name string) (afero.File, error)

Create provides a mock function with given fields: name

func (*Fs) Mkdir

func (_m *Fs) Mkdir(name string, perm os.FileMode) error

Mkdir provides a mock function with given fields: name, perm

func (*Fs) MkdirAll

func (_m *Fs) MkdirAll(path string, perm os.FileMode) error

MkdirAll provides a mock function with given fields: path, perm

func (*Fs) Name

func (_m *Fs) Name() string

Name provides a mock function with given fields:

func (*Fs) Open

func (_m *Fs) Open(name string) (afero.File, error)

Open provides a mock function with given fields: name

func (*Fs) OpenFile

func (_m *Fs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)

OpenFile provides a mock function with given fields: name, flag, perm

func (*Fs) Remove

func (_m *Fs) Remove(name string) error

Remove provides a mock function with given fields: name

func (*Fs) RemoveAll

func (_m *Fs) RemoveAll(path string) error

RemoveAll provides a mock function with given fields: path

func (*Fs) Rename

func (_m *Fs) Rename(oldname string, newname string) error

Rename provides a mock function with given fields: oldname, newname

func (*Fs) Stat

func (_m *Fs) Stat(name string) (os.FileInfo, error)

Stat provides a mock function with given fields: name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL