mocks

package
v1.0.91 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 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 Chart

type Chart struct {
	mock.Mock
}

Chart is an autogenerated mock type for the Chart type

func NewChart

func NewChart(t interface {
	mock.TestingT
	Cleanup(func())
}) *Chart

NewChart creates a new instance of Chart. 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 (*Chart) BumpChartVersion

func (_m *Chart) BumpChartVersion(latestPublishedVersion string) (string, error)

BumpChartVersion provides a mock function with given fields: latestPublishedVersion

func (*Chart) EXPECT

func (_m *Chart) EXPECT() *Chart_Expecter

func (*Chart) GenerateDocs

func (_m *Chart) GenerateDocs() error

GenerateDocs provides a mock function with given fields:

func (*Chart) LocalDependencies

func (_m *Chart) LocalDependencies() []string

LocalDependencies provides a mock function with given fields:

func (*Chart) ManifestVersion

func (_m *Chart) ManifestVersion() string

ManifestVersion provides a mock function with given fields:

func (*Chart) Name

func (_m *Chart) Name() string

Name provides a mock function with given fields:

func (*Chart) PackageChart

func (_m *Chart) PackageChart(destPath string) error

PackageChart provides a mock function with given fields: destPath

func (*Chart) Path

func (_m *Chart) Path() string

Path provides a mock function with given fields:

func (*Chart) SetDependencyVersion

func (_m *Chart) SetDependencyVersion(dependencyName string, newVersion string) error

SetDependencyVersion provides a mock function with given fields: dependencyName, newVersion

func (*Chart) UpdateDependencies

func (_m *Chart) UpdateDependencies() error

UpdateDependencies provides a mock function with given fields:

type Chart_BumpChartVersion_Call

type Chart_BumpChartVersion_Call struct {
	*mock.Call
}

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

func (*Chart_BumpChartVersion_Call) Return

func (*Chart_BumpChartVersion_Call) Run

func (_c *Chart_BumpChartVersion_Call) Run(run func(latestPublishedVersion string)) *Chart_BumpChartVersion_Call

func (*Chart_BumpChartVersion_Call) RunAndReturn

type Chart_Expecter

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

func (*Chart_Expecter) BumpChartVersion

func (_e *Chart_Expecter) BumpChartVersion(latestPublishedVersion interface{}) *Chart_BumpChartVersion_Call

BumpChartVersion is a helper method to define mock.On call

  • latestPublishedVersion string

func (*Chart_Expecter) GenerateDocs

func (_e *Chart_Expecter) GenerateDocs() *Chart_GenerateDocs_Call

GenerateDocs is a helper method to define mock.On call

func (*Chart_Expecter) LocalDependencies

func (_e *Chart_Expecter) LocalDependencies() *Chart_LocalDependencies_Call

LocalDependencies is a helper method to define mock.On call

func (*Chart_Expecter) ManifestVersion

func (_e *Chart_Expecter) ManifestVersion() *Chart_ManifestVersion_Call

ManifestVersion is a helper method to define mock.On call

func (*Chart_Expecter) Name

func (_e *Chart_Expecter) Name() *Chart_Name_Call

Name is a helper method to define mock.On call

func (*Chart_Expecter) PackageChart

func (_e *Chart_Expecter) PackageChart(destPath interface{}) *Chart_PackageChart_Call

PackageChart is a helper method to define mock.On call

  • destPath string

func (*Chart_Expecter) Path

func (_e *Chart_Expecter) Path() *Chart_Path_Call

Path is a helper method to define mock.On call

func (*Chart_Expecter) SetDependencyVersion

func (_e *Chart_Expecter) SetDependencyVersion(dependencyName interface{}, newVersion interface{}) *Chart_SetDependencyVersion_Call

SetDependencyVersion is a helper method to define mock.On call

  • dependencyName string
  • newVersion string

func (*Chart_Expecter) UpdateDependencies

func (_e *Chart_Expecter) UpdateDependencies() *Chart_UpdateDependencies_Call

UpdateDependencies is a helper method to define mock.On call

type Chart_GenerateDocs_Call

type Chart_GenerateDocs_Call struct {
	*mock.Call
}

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

func (*Chart_GenerateDocs_Call) Return

func (*Chart_GenerateDocs_Call) Run

func (_c *Chart_GenerateDocs_Call) Run(run func()) *Chart_GenerateDocs_Call

func (*Chart_GenerateDocs_Call) RunAndReturn

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

type Chart_LocalDependencies_Call

type Chart_LocalDependencies_Call struct {
	*mock.Call
}

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

func (*Chart_LocalDependencies_Call) Return

func (*Chart_LocalDependencies_Call) Run

func (*Chart_LocalDependencies_Call) RunAndReturn

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

type Chart_ManifestVersion_Call

type Chart_ManifestVersion_Call struct {
	*mock.Call
}

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

func (*Chart_ManifestVersion_Call) Return

func (*Chart_ManifestVersion_Call) Run

func (*Chart_ManifestVersion_Call) RunAndReturn

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

type Chart_Name_Call

type Chart_Name_Call struct {
	*mock.Call
}

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

func (*Chart_Name_Call) Return

func (_c *Chart_Name_Call) Return(_a0 string) *Chart_Name_Call

func (*Chart_Name_Call) Run

func (_c *Chart_Name_Call) Run(run func()) *Chart_Name_Call

func (*Chart_Name_Call) RunAndReturn

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

type Chart_PackageChart_Call

type Chart_PackageChart_Call struct {
	*mock.Call
}

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

func (*Chart_PackageChart_Call) Return

func (*Chart_PackageChart_Call) Run

func (_c *Chart_PackageChart_Call) Run(run func(destPath string)) *Chart_PackageChart_Call

func (*Chart_PackageChart_Call) RunAndReturn

func (_c *Chart_PackageChart_Call) RunAndReturn(run func(string) error) *Chart_PackageChart_Call

type Chart_Path_Call

type Chart_Path_Call struct {
	*mock.Call
}

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

func (*Chart_Path_Call) Return

func (_c *Chart_Path_Call) Return(_a0 string) *Chart_Path_Call

func (*Chart_Path_Call) Run

func (_c *Chart_Path_Call) Run(run func()) *Chart_Path_Call

func (*Chart_Path_Call) RunAndReturn

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

type Chart_SetDependencyVersion_Call

type Chart_SetDependencyVersion_Call struct {
	*mock.Call
}

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

func (*Chart_SetDependencyVersion_Call) Return

func (*Chart_SetDependencyVersion_Call) Run

func (_c *Chart_SetDependencyVersion_Call) Run(run func(dependencyName string, newVersion string)) *Chart_SetDependencyVersion_Call

func (*Chart_SetDependencyVersion_Call) RunAndReturn

type Chart_UpdateDependencies_Call

type Chart_UpdateDependencies_Call struct {
	*mock.Call
}

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

func (*Chart_UpdateDependencies_Call) Return

func (*Chart_UpdateDependencies_Call) Run

func (*Chart_UpdateDependencies_Call) RunAndReturn

type ChartsDir

type ChartsDir struct {
	mock.Mock
}

ChartsDir is an autogenerated mock type for the ChartsDir type

func NewChartsDir

func NewChartsDir(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChartsDir

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

func (_m *ChartsDir) EXPECT() *ChartsDir_Expecter

func (*ChartsDir) Exists

func (_m *ChartsDir) Exists(name string) bool

Exists provides a mock function with given fields: name

func (*ChartsDir) GetChart

func (_m *ChartsDir) GetChart(name string) (source.Chart, error)

GetChart provides a mock function with given fields: name

func (*ChartsDir) GetCharts

func (_m *ChartsDir) GetCharts(name ...string) ([]source.Chart, error)

GetCharts provides a mock function with given fields: name

func (*ChartsDir) RecursivelyUpdateDependencies

func (_m *ChartsDir) RecursivelyUpdateDependencies(chart ...source.Chart) error

RecursivelyUpdateDependencies provides a mock function with given fields: chart

func (*ChartsDir) UpdateDependentVersionConstraints

func (_m *ChartsDir) UpdateDependentVersionConstraints(chart source.Chart, newVersion string) error

UpdateDependentVersionConstraints provides a mock function with given fields: chart, newVersion

func (*ChartsDir) WithTransitiveDependents

func (_m *ChartsDir) WithTransitiveDependents(chart []source.Chart) ([]source.Chart, error)

WithTransitiveDependents provides a mock function with given fields: chart

type ChartsDir_Exists_Call

type ChartsDir_Exists_Call struct {
	*mock.Call
}

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

func (*ChartsDir_Exists_Call) Return

func (*ChartsDir_Exists_Call) Run

func (_c *ChartsDir_Exists_Call) Run(run func(name string)) *ChartsDir_Exists_Call

func (*ChartsDir_Exists_Call) RunAndReturn

func (_c *ChartsDir_Exists_Call) RunAndReturn(run func(string) bool) *ChartsDir_Exists_Call

type ChartsDir_Expecter

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

func (*ChartsDir_Expecter) Exists

func (_e *ChartsDir_Expecter) Exists(name interface{}) *ChartsDir_Exists_Call

Exists is a helper method to define mock.On call

  • name string

func (*ChartsDir_Expecter) GetChart

func (_e *ChartsDir_Expecter) GetChart(name interface{}) *ChartsDir_GetChart_Call

GetChart is a helper method to define mock.On call

  • name string

func (*ChartsDir_Expecter) GetCharts

func (_e *ChartsDir_Expecter) GetCharts(name ...interface{}) *ChartsDir_GetCharts_Call

GetCharts is a helper method to define mock.On call

  • name ...string

func (*ChartsDir_Expecter) RecursivelyUpdateDependencies

func (_e *ChartsDir_Expecter) RecursivelyUpdateDependencies(chart ...interface{}) *ChartsDir_RecursivelyUpdateDependencies_Call

RecursivelyUpdateDependencies is a helper method to define mock.On call

  • chart ...source.Chart

func (*ChartsDir_Expecter) UpdateDependentVersionConstraints

func (_e *ChartsDir_Expecter) UpdateDependentVersionConstraints(chart interface{}, newVersion interface{}) *ChartsDir_UpdateDependentVersionConstraints_Call

UpdateDependentVersionConstraints is a helper method to define mock.On call

  • chart source.Chart
  • newVersion string

func (*ChartsDir_Expecter) WithTransitiveDependents

func (_e *ChartsDir_Expecter) WithTransitiveDependents(chart interface{}) *ChartsDir_WithTransitiveDependents_Call

WithTransitiveDependents is a helper method to define mock.On call

  • chart []source.Chart

type ChartsDir_GetChart_Call

type ChartsDir_GetChart_Call struct {
	*mock.Call
}

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

func (*ChartsDir_GetChart_Call) Return

func (*ChartsDir_GetChart_Call) Run

func (_c *ChartsDir_GetChart_Call) Run(run func(name string)) *ChartsDir_GetChart_Call

func (*ChartsDir_GetChart_Call) RunAndReturn

func (_c *ChartsDir_GetChart_Call) RunAndReturn(run func(string) (source.Chart, error)) *ChartsDir_GetChart_Call

type ChartsDir_GetCharts_Call

type ChartsDir_GetCharts_Call struct {
	*mock.Call
}

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

func (*ChartsDir_GetCharts_Call) Return

func (*ChartsDir_GetCharts_Call) Run

func (_c *ChartsDir_GetCharts_Call) Run(run func(name ...string)) *ChartsDir_GetCharts_Call

func (*ChartsDir_GetCharts_Call) RunAndReturn

func (_c *ChartsDir_GetCharts_Call) RunAndReturn(run func(...string) ([]source.Chart, error)) *ChartsDir_GetCharts_Call

type ChartsDir_RecursivelyUpdateDependencies_Call

type ChartsDir_RecursivelyUpdateDependencies_Call struct {
	*mock.Call
}

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

func (*ChartsDir_RecursivelyUpdateDependencies_Call) Return

func (*ChartsDir_RecursivelyUpdateDependencies_Call) Run

func (*ChartsDir_RecursivelyUpdateDependencies_Call) RunAndReturn

type ChartsDir_UpdateDependentVersionConstraints_Call

type ChartsDir_UpdateDependentVersionConstraints_Call struct {
	*mock.Call
}

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

func (*ChartsDir_UpdateDependentVersionConstraints_Call) Return

func (*ChartsDir_UpdateDependentVersionConstraints_Call) Run

func (*ChartsDir_UpdateDependentVersionConstraints_Call) RunAndReturn

type ChartsDir_WithTransitiveDependents_Call

type ChartsDir_WithTransitiveDependents_Call struct {
	*mock.Call
}

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

func (*ChartsDir_WithTransitiveDependents_Call) Return

func (*ChartsDir_WithTransitiveDependents_Call) Run

func (*ChartsDir_WithTransitiveDependents_Call) RunAndReturn

Jump to

Keyboard shortcuts

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