mocks

package
v0.64.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TagFileCreator

type TagFileCreator struct {
	mock.Mock
}

TagFileCreator is an autogenerated mock type for the TagFileCreator type

func NewTagFileCreator

func NewTagFileCreator(t interface {
	mock.TestingT
	Cleanup(func())
}) *TagFileCreator

NewTagFileCreator creates a new instance of TagFileCreator. 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 (*TagFileCreator) AddTags

func (_m *TagFileCreator) AddTags(tags ...*tag.TagImportObject) error

AddTags provides a mock function with given fields: tags

func (*TagFileCreator) Close

func (_m *TagFileCreator) Close()

Close provides a mock function with given fields:

func (*TagFileCreator) EXPECT

func (*TagFileCreator) GetTagCount

func (_m *TagFileCreator) GetTagCount() int

GetTagCount provides a mock function with given fields:

type TagFileCreator_AddTags_Call

type TagFileCreator_AddTags_Call struct {
	*mock.Call
}

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

func (*TagFileCreator_AddTags_Call) Return

func (*TagFileCreator_AddTags_Call) Run

func (*TagFileCreator_AddTags_Call) RunAndReturn

type TagFileCreator_Close_Call

type TagFileCreator_Close_Call struct {
	*mock.Call
}

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

func (*TagFileCreator_Close_Call) Return

func (*TagFileCreator_Close_Call) Run

func (*TagFileCreator_Close_Call) RunAndReturn

func (_c *TagFileCreator_Close_Call) RunAndReturn(run func()) *TagFileCreator_Close_Call

type TagFileCreator_Expecter

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

func (*TagFileCreator_Expecter) AddTags

func (_e *TagFileCreator_Expecter) AddTags(tags ...interface{}) *TagFileCreator_AddTags_Call

AddTags is a helper method to define mock.On call

  • tags ...*tag.TagImportObject

func (*TagFileCreator_Expecter) Close

Close is a helper method to define mock.On call

func (*TagFileCreator_Expecter) GetTagCount

GetTagCount is a helper method to define mock.On call

type TagFileCreator_GetTagCount_Call

type TagFileCreator_GetTagCount_Call struct {
	*mock.Call
}

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

func (*TagFileCreator_GetTagCount_Call) Return

func (*TagFileCreator_GetTagCount_Call) Run

func (*TagFileCreator_GetTagCount_Call) RunAndReturn

Jump to

Keyboard shortcuts

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