mocks

package
v1.0.101 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 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 Repo

type Repo struct {
	mock.Mock
}

Repo is an autogenerated mock type for the Repo type

func NewRepo

func NewRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repo

NewRepo creates a new instance of Repo. 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 (*Repo) DownloadIndex

func (_m *Repo) DownloadIndex(destPath string) error

DownloadIndex provides a mock function with given fields: destPath

func (*Repo) EXPECT

func (_m *Repo) EXPECT() *Repo_Expecter

func (*Repo) HasIndex

func (_m *Repo) HasIndex() (bool, error)

HasIndex provides a mock function with given fields:

func (*Repo) IsLocked

func (_m *Repo) IsLocked() bool

IsLocked provides a mock function with given fields:

func (*Repo) Lock

func (_m *Repo) Lock() error

Lock provides a mock function with given fields:

func (*Repo) RepoURL

func (_m *Repo) RepoURL() string

RepoURL provides a mock function with given fields:

func (*Repo) Unlock

func (_m *Repo) Unlock() error

Unlock provides a mock function with given fields:

func (*Repo) UploadChart

func (_m *Repo) UploadChart(fromPath string) error

UploadChart provides a mock function with given fields: fromPath

func (*Repo) UploadIndex

func (_m *Repo) UploadIndex(fromPath string) error

UploadIndex provides a mock function with given fields: fromPath

type Repo_DownloadIndex_Call

type Repo_DownloadIndex_Call struct {
	*mock.Call
}

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

func (*Repo_DownloadIndex_Call) Return

func (*Repo_DownloadIndex_Call) Run

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

func (*Repo_DownloadIndex_Call) RunAndReturn

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

type Repo_Expecter

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

func (*Repo_Expecter) DownloadIndex

func (_e *Repo_Expecter) DownloadIndex(destPath interface{}) *Repo_DownloadIndex_Call

DownloadIndex is a helper method to define mock.On call

  • destPath string

func (*Repo_Expecter) HasIndex

func (_e *Repo_Expecter) HasIndex() *Repo_HasIndex_Call

HasIndex is a helper method to define mock.On call

func (*Repo_Expecter) IsLocked

func (_e *Repo_Expecter) IsLocked() *Repo_IsLocked_Call

IsLocked is a helper method to define mock.On call

func (*Repo_Expecter) Lock

func (_e *Repo_Expecter) Lock() *Repo_Lock_Call

Lock is a helper method to define mock.On call

func (*Repo_Expecter) RepoURL

func (_e *Repo_Expecter) RepoURL() *Repo_RepoURL_Call

RepoURL is a helper method to define mock.On call

func (*Repo_Expecter) Unlock

func (_e *Repo_Expecter) Unlock() *Repo_Unlock_Call

Unlock is a helper method to define mock.On call

func (*Repo_Expecter) UploadChart

func (_e *Repo_Expecter) UploadChart(fromPath interface{}) *Repo_UploadChart_Call

UploadChart is a helper method to define mock.On call

  • fromPath string

func (*Repo_Expecter) UploadIndex

func (_e *Repo_Expecter) UploadIndex(fromPath interface{}) *Repo_UploadIndex_Call

UploadIndex is a helper method to define mock.On call

  • fromPath string

type Repo_HasIndex_Call

type Repo_HasIndex_Call struct {
	*mock.Call
}

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

func (*Repo_HasIndex_Call) Return

func (_c *Repo_HasIndex_Call) Return(_a0 bool, _a1 error) *Repo_HasIndex_Call

func (*Repo_HasIndex_Call) Run

func (_c *Repo_HasIndex_Call) Run(run func()) *Repo_HasIndex_Call

func (*Repo_HasIndex_Call) RunAndReturn

func (_c *Repo_HasIndex_Call) RunAndReturn(run func() (bool, error)) *Repo_HasIndex_Call

type Repo_IsLocked_Call

type Repo_IsLocked_Call struct {
	*mock.Call
}

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

func (*Repo_IsLocked_Call) Return

func (_c *Repo_IsLocked_Call) Return(_a0 bool) *Repo_IsLocked_Call

func (*Repo_IsLocked_Call) Run

func (_c *Repo_IsLocked_Call) Run(run func()) *Repo_IsLocked_Call

func (*Repo_IsLocked_Call) RunAndReturn

func (_c *Repo_IsLocked_Call) RunAndReturn(run func() bool) *Repo_IsLocked_Call

type Repo_Lock_Call

type Repo_Lock_Call struct {
	*mock.Call
}

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

func (*Repo_Lock_Call) Return

func (_c *Repo_Lock_Call) Return(_a0 error) *Repo_Lock_Call

func (*Repo_Lock_Call) Run

func (_c *Repo_Lock_Call) Run(run func()) *Repo_Lock_Call

func (*Repo_Lock_Call) RunAndReturn

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

type Repo_RepoURL_Call

type Repo_RepoURL_Call struct {
	*mock.Call
}

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

func (*Repo_RepoURL_Call) Return

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

func (*Repo_RepoURL_Call) Run

func (_c *Repo_RepoURL_Call) Run(run func()) *Repo_RepoURL_Call

func (*Repo_RepoURL_Call) RunAndReturn

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

type Repo_Unlock_Call

type Repo_Unlock_Call struct {
	*mock.Call
}

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

func (*Repo_Unlock_Call) Return

func (_c *Repo_Unlock_Call) Return(_a0 error) *Repo_Unlock_Call

func (*Repo_Unlock_Call) Run

func (_c *Repo_Unlock_Call) Run(run func()) *Repo_Unlock_Call

func (*Repo_Unlock_Call) RunAndReturn

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

type Repo_UploadChart_Call

type Repo_UploadChart_Call struct {
	*mock.Call
}

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

func (*Repo_UploadChart_Call) Return

func (*Repo_UploadChart_Call) Run

func (_c *Repo_UploadChart_Call) Run(run func(fromPath string)) *Repo_UploadChart_Call

func (*Repo_UploadChart_Call) RunAndReturn

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

type Repo_UploadIndex_Call

type Repo_UploadIndex_Call struct {
	*mock.Call
}

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

func (*Repo_UploadIndex_Call) Return

func (*Repo_UploadIndex_Call) Run

func (_c *Repo_UploadIndex_Call) Run(run func(fromPath string)) *Repo_UploadIndex_Call

func (*Repo_UploadIndex_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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