mocks

package
v2.19.6 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 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 added in v2.3.0

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 added in v2.19.6

func (_m *Blobstore) EXPECT() *Blobstore_Expecter

func (*Blobstore) Upload

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

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

type Blobstore_Delete_Call added in v2.19.6

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 added in v2.19.6

func (*Blobstore_Delete_Call) Run added in v2.19.6

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

func (*Blobstore_Delete_Call) RunAndReturn added in v2.19.6

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

type Blobstore_Download_Call added in v2.19.6

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 added in v2.19.6

func (*Blobstore_Download_Call) Run added in v2.19.6

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

func (*Blobstore_Download_Call) RunAndReturn added in v2.19.6

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

type Blobstore_Expecter added in v2.19.6

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

func (*Blobstore_Expecter) Delete added in v2.19.6

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 added in v2.19.6

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 added in v2.19.6

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

Upload is a helper method to define mock.On call

  • _a0 *node.Node
  • source string

type Blobstore_Upload_Call added in v2.19.6

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 added in v2.19.6

func (*Blobstore_Upload_Call) Run added in v2.19.6

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

func (*Blobstore_Upload_Call) RunAndReturn added in v2.19.6

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

Jump to

Keyboard shortcuts

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