mocks

package
v0.0.0-...-5ae9364 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PathChecker

type PathChecker struct {
	mock.Mock
}

PathChecker is an autogenerated mock type for the PathChecker type

func NewPathChecker

func NewPathChecker(t interface {
	mock.TestingT
	Cleanup(func())
}) *PathChecker

NewPathChecker creates a new instance of PathChecker. 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 (*PathChecker) IsDirExists

func (_m *PathChecker) IsDirExists(pth string) (bool, error)

IsDirExists provides a mock function with given fields: pth

func (*PathChecker) IsPathExists

func (_m *PathChecker) IsPathExists(pth string) (bool, error)

IsPathExists provides a mock function with given fields: pth

type PathModifier

type PathModifier struct {
	mock.Mock
}

PathModifier is an autogenerated mock type for the PathModifier type

func NewPathModifier

func NewPathModifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *PathModifier

NewPathModifier creates a new instance of PathModifier. 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 (*PathModifier) AbsPath

func (_m *PathModifier) AbsPath(pth string) (string, error)

AbsPath provides a mock function with given fields: pth

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

NewRepository creates a new instance of Repository. 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 (*Repository) Get

func (_m *Repository) Get(key string) string

Get provides a mock function with given fields: key

func (*Repository) List

func (_m *Repository) List() []string

List provides a mock function with given fields:

func (*Repository) Set

func (_m *Repository) Set(key string, value string) error

Set provides a mock function with given fields: key, value

func (*Repository) Unset

func (_m *Repository) Unset(key string) error

Unset provides a mock function with given fields: key

Jump to

Keyboard shortcuts

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