mocks

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 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 DirLister

type DirLister struct {
	mock.Mock
}

DirLister is an autogenerated mock type for the DirLister type

func NewDirLister

func NewDirLister(t interface {
	mock.TestingT
	Cleanup(func())
}) *DirLister

NewDirLister creates a new instance of DirLister. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DirLister) ListFiles

func (_m *DirLister) ListFiles(_a0 string) ([]string, error)

ListFiles provides a mock function with given fields: _a0

type Opener

type Opener struct {
	mock.Mock
}

Opener is an autogenerated mock type for the Opener type

func NewOpener

func NewOpener(t interface {
	mock.TestingT
	Cleanup(func())
}) *Opener

NewOpener creates a new instance of Opener. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Opener) Open

func (_m *Opener) Open(_a0 string) (io.ReadCloser, error)

Open provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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