Documentation
¶
Overview ¶
Package mocks provides generated package metadata inspection test doubles.
Index ¶
- type MockInspector
- type MockInspector_Expecter
- type MockInspector_Inspect_Call
- func (_c *MockInspector_Inspect_Call) Return(packageMetadata pkgrepo.PackageMetadata, err error) *MockInspector_Inspect_Call
- func (_c *MockInspector_Inspect_Call) Run(run func(ctx context.Context, format pkgrepo.Format, packagePath string)) *MockInspector_Inspect_Call
- func (_c *MockInspector_Inspect_Call) RunAndReturn(...) *MockInspector_Inspect_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInspector ¶
MockInspector is an autogenerated mock type for the Inspector type
func NewMockInspector ¶
func NewMockInspector(t interface {
mock.TestingT
Cleanup(func())
}) *MockInspector
NewMockInspector creates a new instance of MockInspector. 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 (*MockInspector) EXPECT ¶
func (_m *MockInspector) EXPECT() *MockInspector_Expecter
type MockInspector_Expecter ¶
type MockInspector_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInspector_Expecter) Inspect ¶
func (_e *MockInspector_Expecter) Inspect(ctx any, format any, packagePath any) *MockInspector_Inspect_Call
Inspect is a helper method to define mock.On call
- ctx context.Context
- format pkgrepo.Format
- packagePath string
type MockInspector_Inspect_Call ¶
MockInspector_Inspect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Inspect'
func (*MockInspector_Inspect_Call) Return ¶
func (_c *MockInspector_Inspect_Call) Return(packageMetadata pkgrepo.PackageMetadata, err error) *MockInspector_Inspect_Call
func (*MockInspector_Inspect_Call) Run ¶
func (_c *MockInspector_Inspect_Call) Run(run func(ctx context.Context, format pkgrepo.Format, packagePath string)) *MockInspector_Inspect_Call
func (*MockInspector_Inspect_Call) RunAndReturn ¶
func (_c *MockInspector_Inspect_Call) RunAndReturn(run func(ctx context.Context, format pkgrepo.Format, packagePath string) (pkgrepo.PackageMetadata, error)) *MockInspector_Inspect_Call
Click to show internal directories.
Click to hide internal directories.