mocks

package
v0.0.0-...-1ed863c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCSUploader

type GCSUploader struct {
	mock.Mock
}

GCSUploader is an autogenerated mock type for the GCSUploader type

func NewGCSUploader

func NewGCSUploader(t interface {
	mock.TestingT
	Cleanup(func())
}) *GCSUploader

NewGCSUploader creates a new instance of GCSUploader. 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 (*GCSUploader) UploadBytes

func (_m *GCSUploader) UploadBytes(ctx context.Context, data []byte, fallbackSrc string, dst string) error

UploadBytes provides a mock function with given fields: ctx, data, fallbackSrc, dst

func (*GCSUploader) UploadJSON

func (_m *GCSUploader) UploadJSON(ctx context.Context, data interface{}, tempFileName string, gcsObjectPath string) error

UploadJSON provides a mock function with given fields: ctx, data, tempFileName, gcsObjectPath

type HTTPClient

type HTTPClient struct {
	mock.Mock
}

HTTPClient is an autogenerated mock type for the HTTPClient type

func NewHTTPClient

func NewHTTPClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *HTTPClient

NewHTTPClient creates a new instance of HTTPClient. 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 (*HTTPClient) Get

func (_m *HTTPClient) Get(ctx context.Context, url string) (*http.Response, error)

Get provides a mock function with given fields: ctx, url

func (*HTTPClient) Post

func (_m *HTTPClient) Post(ctx context.Context, url string, contentType string, body io.Reader) (*http.Response, error)

Post provides a mock function with given fields: ctx, url, contentType, body

type ImageDownloader

type ImageDownloader struct {
	mock.Mock
}

ImageDownloader is an autogenerated mock type for the ImageDownloader type

func NewImageDownloader

func NewImageDownloader(t interface {
	mock.TestingT
	Cleanup(func())
}) *ImageDownloader

NewImageDownloader creates a new instance of ImageDownloader. 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 (*ImageDownloader) DownloadImage

func (_m *ImageDownloader) DownloadImage(ctx context.Context, goldURL string, digest types.Digest) ([]byte, error)

DownloadImage provides a mock function with given fields: ctx, goldURL, digest

type Matcher

type Matcher struct {
	mock.Mock
}

Matcher is an autogenerated mock type for the Matcher type

func NewMatcher

func NewMatcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *Matcher

NewMatcher creates a new instance of Matcher. 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 (*Matcher) Match

func (_m *Matcher) Match(expected image.Image, actual image.Image) bool

Match provides a mock function with given fields: expected, actual

Jump to

Keyboard shortcuts

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