mocks

package
v1.1.38 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

type Publisher struct {
	mock.Mock
}

Publisher is an autogenerated mock type for the Publisher type

func NewPublisher

func NewPublisher(t interface {
	mock.TestingT
	Cleanup(func())
}) *Publisher

NewPublisher creates a new instance of Publisher. 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 (*Publisher) ChartDir

func (_m *Publisher) ChartDir() string

ChartDir provides a mock function with given fields:

func (*Publisher) Close

func (_m *Publisher) Close() error

Close provides a mock function with given fields:

func (*Publisher) EXPECT

func (_m *Publisher) EXPECT() *Publisher_Expecter

func (*Publisher) Index

func (_m *Publisher) Index() index.Index

Index provides a mock function with given fields:

func (*Publisher) Publish

func (_m *Publisher) Publish() (int, error)

Publish provides a mock function with given fields:

type Publisher_ChartDir_Call

type Publisher_ChartDir_Call struct {
	*mock.Call
}

Publisher_ChartDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChartDir'

func (*Publisher_ChartDir_Call) Return

func (*Publisher_ChartDir_Call) Run

func (_c *Publisher_ChartDir_Call) Run(run func()) *Publisher_ChartDir_Call

func (*Publisher_ChartDir_Call) RunAndReturn

func (_c *Publisher_ChartDir_Call) RunAndReturn(run func() string) *Publisher_ChartDir_Call

type Publisher_Close_Call

type Publisher_Close_Call struct {
	*mock.Call
}

Publisher_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*Publisher_Close_Call) Return

func (*Publisher_Close_Call) Run

func (_c *Publisher_Close_Call) Run(run func()) *Publisher_Close_Call

func (*Publisher_Close_Call) RunAndReturn

func (_c *Publisher_Close_Call) RunAndReturn(run func() error) *Publisher_Close_Call

type Publisher_Expecter

type Publisher_Expecter struct {
	// contains filtered or unexported fields
}

func (*Publisher_Expecter) ChartDir

ChartDir is a helper method to define mock.On call

func (*Publisher_Expecter) Close

Close is a helper method to define mock.On call

func (*Publisher_Expecter) Index

Index is a helper method to define mock.On call

func (*Publisher_Expecter) Publish

Publish is a helper method to define mock.On call

type Publisher_Index_Call

type Publisher_Index_Call struct {
	*mock.Call
}

Publisher_Index_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Index'

func (*Publisher_Index_Call) Return

func (*Publisher_Index_Call) Run

func (_c *Publisher_Index_Call) Run(run func()) *Publisher_Index_Call

func (*Publisher_Index_Call) RunAndReturn

func (_c *Publisher_Index_Call) RunAndReturn(run func() index.Index) *Publisher_Index_Call

type Publisher_Publish_Call

type Publisher_Publish_Call struct {
	*mock.Call
}

Publisher_Publish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Publish'

func (*Publisher_Publish_Call) Return

func (_c *Publisher_Publish_Call) Return(count int, err error) *Publisher_Publish_Call

func (*Publisher_Publish_Call) Run

func (_c *Publisher_Publish_Call) Run(run func()) *Publisher_Publish_Call

func (*Publisher_Publish_Call) RunAndReturn

func (_c *Publisher_Publish_Call) RunAndReturn(run func() (int, error)) *Publisher_Publish_Call

Jump to

Keyboard shortcuts

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