Help us shape the future of Go! Take the 2026 Go Developer Survey

mock

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RetryableUploaderWrapper added in v0.43.2

type RetryableUploaderWrapper struct {
	mock.Mock
}

RetryableUploaderWrapper is an autogenerated mock type for the RetryableUploaderWrapper type

func NewRetryableUploaderWrapper added in v0.43.2

func NewRetryableUploaderWrapper(t interface {
	mock.TestingT
	Cleanup(func())
}) *RetryableUploaderWrapper

NewRetryableUploaderWrapper creates a new instance of RetryableUploaderWrapper. 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 (*RetryableUploaderWrapper) RetryUpload added in v0.43.2

func (_m *RetryableUploaderWrapper) RetryUpload() error

RetryUpload provides a mock function with no fields

func (*RetryableUploaderWrapper) Upload added in v0.43.2

func (_m *RetryableUploaderWrapper) Upload(computationResult *execution.ComputationResult) error

Upload provides a mock function with given fields: computationResult

type Uploader

type Uploader struct {
	mock.Mock
}

Uploader is an autogenerated mock type for the Uploader type

func NewUploader

func NewUploader(t interface {
	mock.TestingT
	Cleanup(func())
}) *Uploader

NewUploader creates a new instance of Uploader. 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 (*Uploader) Upload

func (_m *Uploader) Upload(computationResult *execution.ComputationResult) error

Upload provides a mock function with given fields: computationResult

Jump to

Keyboard shortcuts

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