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

mocks

package
v2.52.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 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 Blobstore

type Blobstore struct {
	mock.Mock
}

Blobstore is an autogenerated mock type for the Blobstore type

func NewBlobstore

func NewBlobstore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Blobstore

NewBlobstore creates a new instance of Blobstore. 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 (*Blobstore) Delete

func (_m *Blobstore) Delete(_a0 *node.Node) error

Delete provides a mock function with given fields: _a0

func (*Blobstore) Download

func (_m *Blobstore) Download(_a0 *node.Node) (io.ReadCloser, error)

Download provides a mock function with given fields: _a0

func (*Blobstore) EXPECT

func (_m *Blobstore) EXPECT() *Blobstore_Expecter

func (*Blobstore) Upload

func (_m *Blobstore) Upload(_a0 *node.Node, source string, copyTarget string) error

Upload provides a mock function with given fields: _a0, source, copyTarget

func (*Blobstore) UploadFromReader added in v2.52.0

func (_m *Blobstore) UploadFromReader(_a0 *node.Node, reader io.Reader, size int64) error

UploadFromReader provides a mock function with given fields: _a0, reader, size

type Blobstore_Delete_Call

type Blobstore_Delete_Call struct {
	*mock.Call
}

Blobstore_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*Blobstore_Delete_Call) Return

func (*Blobstore_Delete_Call) Run

func (_c *Blobstore_Delete_Call) Run(run func(_a0 *node.Node)) *Blobstore_Delete_Call

func (*Blobstore_Delete_Call) RunAndReturn

func (_c *Blobstore_Delete_Call) RunAndReturn(run func(*node.Node) error) *Blobstore_Delete_Call

type Blobstore_Download_Call

type Blobstore_Download_Call struct {
	*mock.Call
}

Blobstore_Download_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Download'

func (*Blobstore_Download_Call) Return

func (*Blobstore_Download_Call) Run

func (_c *Blobstore_Download_Call) Run(run func(_a0 *node.Node)) *Blobstore_Download_Call

func (*Blobstore_Download_Call) RunAndReturn

func (_c *Blobstore_Download_Call) RunAndReturn(run func(*node.Node) (io.ReadCloser, error)) *Blobstore_Download_Call

type Blobstore_Expecter

type Blobstore_Expecter struct {
	// contains filtered or unexported fields
}

func (*Blobstore_Expecter) Delete

func (_e *Blobstore_Expecter) Delete(_a0 interface{}) *Blobstore_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 *node.Node

func (*Blobstore_Expecter) Download

func (_e *Blobstore_Expecter) Download(_a0 interface{}) *Blobstore_Download_Call

Download is a helper method to define mock.On call

  • _a0 *node.Node

func (*Blobstore_Expecter) Upload

func (_e *Blobstore_Expecter) Upload(_a0 interface{}, source interface{}, copyTarget interface{}) *Blobstore_Upload_Call

Upload is a helper method to define mock.On call

  • _a0 *node.Node
  • source string
  • copyTarget string

type Blobstore_Upload_Call

type Blobstore_Upload_Call struct {
	*mock.Call
}

Blobstore_Upload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upload'

func (*Blobstore_Upload_Call) Return

func (*Blobstore_Upload_Call) Run

func (_c *Blobstore_Upload_Call) Run(run func(_a0 *node.Node, source string, copyTarget string)) *Blobstore_Upload_Call

func (*Blobstore_Upload_Call) RunAndReturn

func (_c *Blobstore_Upload_Call) RunAndReturn(run func(*node.Node, string, string) error) *Blobstore_Upload_Call

Jump to

Keyboard shortcuts

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