mocks

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider

func NewProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *Provider

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

func (_m *Provider) EXPECT() *Provider_Expecter

func (*Provider) GetMetadata

func (_m *Provider) GetMetadata(ctx context.Context, path string) (string, error)

GetMetadata provides a mock function with given fields: ctx, path

type Provider_Expecter

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

func (*Provider_Expecter) GetMetadata

func (_e *Provider_Expecter) GetMetadata(ctx interface{}, path interface{}) *Provider_GetMetadata_Call

GetMetadata is a helper method to define mock.On call

  • ctx context.Context
  • path string

type Provider_GetMetadata_Call

type Provider_GetMetadata_Call struct {
	*mock.Call
}

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

func (*Provider_GetMetadata_Call) Return

func (*Provider_GetMetadata_Call) Run

func (*Provider_GetMetadata_Call) RunAndReturn

Jump to

Keyboard shortcuts

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