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

mocks

package
v0.8.90 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Uploader

type Uploader struct {
	mock.Mock
}

Uploader is an autogenerated mock type for the Uploader type

func NewUploader

func NewUploader(t mockConstructorTestingTNewUploader) *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.

func (*Uploader) GetUploadStatus

func (_m *Uploader) GetUploadStatus() chan *materials.UpDownStatus

GetUploadStatus provides a mock function with given fields:

func (*Uploader) Upload

func (_m *Uploader) Upload(ctx context.Context, filePath string) (*materials.UpDownStatus, error)

Upload provides a mock function with given fields: ctx, filePath

Jump to

Keyboard shortcuts

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