mocks

package
v0.0.0-...-522a375 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 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 FileCreateOpener

type FileCreateOpener struct {
	mock.Mock
}

FileCreateOpener is an autogenerated mock type for the FileCreateOpener type

func NewFileCreateOpener

func NewFileCreateOpener(t mockConstructorTestingTNewFileCreateOpener) *FileCreateOpener

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

func (*FileCreateOpener) OpenCreate

func (_m *FileCreateOpener) OpenCreate(path string) (io.WriteCloser, error)

OpenCreate provides a mock function with given fields: path

type FileReadOpener

type FileReadOpener struct {
	mock.Mock
}

FileReadOpener is an autogenerated mock type for the FileReadOpener type

func NewFileReadOpener

func NewFileReadOpener(t mockConstructorTestingTNewFileReadOpener) *FileReadOpener

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

func (*FileReadOpener) OpenRead

func (_m *FileReadOpener) OpenRead(path string) (io.ReadCloser, error)

OpenReadOnly provides a mock function with given fields: path

Jump to

Keyboard shortcuts

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