mocks

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index struct {
	mock.Mock
}

Index is an autogenerated mock type for the Index type

func NewIndex

func NewIndex(t interface {
	mock.TestingT
	Cleanup(func())
}) *Index

NewIndex creates a new instance of Index. 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 (*Index) EXPECT

func (_m *Index) EXPECT() *Index_Expecter

func (*Index) HasVersion

func (_m *Index) HasVersion(chartName string, version string) bool

HasVersion provides a mock function with given fields: chartName, version

func (*Index) MostRecentVersion

func (_m *Index) MostRecentVersion(chartName string) string

MostRecentVersion provides a mock function with given fields: chartName

func (*Index) Versions

func (_m *Index) Versions(chartName string) []string

Versions provides a mock function with given fields: chartName

type Index_Expecter

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

func (*Index_Expecter) HasVersion

func (_e *Index_Expecter) HasVersion(chartName interface{}, version interface{}) *Index_HasVersion_Call

HasVersion is a helper method to define mock.On call

  • chartName string
  • version string

func (*Index_Expecter) MostRecentVersion

func (_e *Index_Expecter) MostRecentVersion(chartName interface{}) *Index_MostRecentVersion_Call

MostRecentVersion is a helper method to define mock.On call

  • chartName string

func (*Index_Expecter) Versions

func (_e *Index_Expecter) Versions(chartName interface{}) *Index_Versions_Call

Versions is a helper method to define mock.On call

  • chartName string

type Index_HasVersion_Call

type Index_HasVersion_Call struct {
	*mock.Call
}

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

func (*Index_HasVersion_Call) Return

func (*Index_HasVersion_Call) Run

func (_c *Index_HasVersion_Call) Run(run func(chartName string, version string)) *Index_HasVersion_Call

func (*Index_HasVersion_Call) RunAndReturn

func (_c *Index_HasVersion_Call) RunAndReturn(run func(string, string) bool) *Index_HasVersion_Call

type Index_MostRecentVersion_Call

type Index_MostRecentVersion_Call struct {
	*mock.Call
}

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

func (*Index_MostRecentVersion_Call) Return

func (*Index_MostRecentVersion_Call) Run

func (*Index_MostRecentVersion_Call) RunAndReturn

type Index_Versions_Call

type Index_Versions_Call struct {
	*mock.Call
}

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

func (*Index_Versions_Call) Return

func (_c *Index_Versions_Call) Return(_a0 []string) *Index_Versions_Call

func (*Index_Versions_Call) Run

func (_c *Index_Versions_Call) Run(run func(chartName string)) *Index_Versions_Call

func (*Index_Versions_Call) RunAndReturn

func (_c *Index_Versions_Call) RunAndReturn(run func(string) []string) *Index_Versions_Call

Jump to

Keyboard shortcuts

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