mocks

package
v0.0.0-...-b433dbc Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Calculator

type Calculator struct {
	mock.Mock
}

Calculator is an autogenerated mock type for the Calculator type

func NewCalculator

func NewCalculator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Calculator

NewCalculator creates a new instance of Calculator. 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 (*Calculator) CalculateDiffs

func (_m *Calculator) CalculateDiffs(ctx context.Context, grouping paramtools.Params, additional []types.Digest) error

CalculateDiffs provides a mock function with given fields: ctx, grouping, additional

type ImageSource

type ImageSource struct {
	mock.Mock
}

ImageSource is an autogenerated mock type for the ImageSource type

func NewImageSource

func NewImageSource(t interface {
	mock.TestingT
	Cleanup(func())
}) *ImageSource

NewImageSource creates a new instance of ImageSource. 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 (*ImageSource) GetImage

func (_m *ImageSource) GetImage(ctx context.Context, digest types.Digest) ([]byte, error)

GetImage provides a mock function with given fields: ctx, digest

Jump to

Keyboard shortcuts

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