mocks

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct {
	mock.Mock
}

FS is an autogenerated mock type for the FS type

func NewFS

func NewFS(t mockConstructorTestingTNewFS) *FS

NewFS creates a new instance of FS. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FS) Open

func (_m *FS) Open(_a0 string) (cask.File, error)

Open provides a mock function with given fields: _a0

func (*FS) ReadFileAt

func (_m *FS) ReadFileAt(_a0 string, _a1 string, _a2 []byte, _a3 int64) (int, error)

ReadFileAt provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*FS) Rotate

func (_m *FS) Rotate(_a0 string) (cask.File, error)

Rotate provides a mock function with given fields: _a0

func (*FS) Walk

func (_m *FS) Walk(_a0 string, _a1 func(cask.File) error) error

Walk provides a mock function with given fields: _a0, _a1

type File

type File struct {
	mock.Mock
}

File is an autogenerated mock type for the File type

func NewFile

func NewFile(t mockConstructorTestingTNewFile) *File

NewFile creates a new instance of File. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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) Size

func (_m *File) Size() int64

Size provides a mock function with given fields:

func (*File) Write

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

Write provides a mock function with given fields: p

type Time

type Time struct {
	mock.Mock
}

Time is an autogenerated mock type for the Time type

func NewTime

func NewTime(t mockConstructorTestingTNewTime) *Time

NewTime creates a new instance of Time. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Time) NowUnix

func (_m *Time) NowUnix() uint32

NowUnix provides a mock function with given fields:

Jump to

Keyboard shortcuts

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