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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tree

type Tree struct {
	mock.Mock
}

Tree is an autogenerated mock type for the Tree type

func NewTree

func NewTree(t interface {
	mock.TestingT
	Cleanup(func())
}) *Tree

NewTree creates a new instance of Tree. 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 (*Tree) CreateDir

func (_m *Tree) CreateDir(ctx context.Context, _a1 *node.Node) error

CreateDir provides a mock function with given fields: ctx, _a1

func (*Tree) Delete

func (_m *Tree) Delete(ctx context.Context, _a1 *node.Node) error

Delete provides a mock function with given fields: ctx, _a1

func (*Tree) DeleteBlob

func (_m *Tree) DeleteBlob(_a0 *node.Node) error

DeleteBlob provides a mock function with given fields: _a0

func (*Tree) EXPECT added in v2.19.6

func (_m *Tree) EXPECT() *Tree_Expecter

func (*Tree) GetMD

func (_m *Tree) GetMD(ctx context.Context, _a1 *node.Node) (fs.FileInfo, error)

GetMD provides a mock function with given fields: ctx, _a1

func (*Tree) ListFolder

func (_m *Tree) ListFolder(ctx context.Context, _a1 *node.Node) ([]*node.Node, error)

ListFolder provides a mock function with given fields: ctx, _a1

func (*Tree) Move

func (_m *Tree) Move(ctx context.Context, oldNode *node.Node, newNode *node.Node) error

Move provides a mock function with given fields: ctx, oldNode, newNode

func (*Tree) Propagate

func (_m *Tree) Propagate(ctx context.Context, _a1 *node.Node, sizeDiff int64) error

Propagate provides a mock function with given fields: ctx, _a1, sizeDiff

func (*Tree) PurgeRecycleItemFunc

func (_m *Tree) PurgeRecycleItemFunc(ctx context.Context, spaceid string, key string, purgePath string) (*node.Node, func() error, error)

PurgeRecycleItemFunc provides a mock function with given fields: ctx, spaceid, key, purgePath

func (*Tree) ReadBlob

func (_m *Tree) ReadBlob(_a0 *node.Node) (io.ReadCloser, error)

ReadBlob provides a mock function with given fields: _a0

func (*Tree) RestoreRecycleItemFunc

func (_m *Tree) RestoreRecycleItemFunc(ctx context.Context, spaceid string, key string, trashPath string, target *node.Node) (*node.Node, *node.Node, func() error, error)

RestoreRecycleItemFunc provides a mock function with given fields: ctx, spaceid, key, trashPath, target

func (*Tree) Setup

func (_m *Tree) Setup() error

Setup provides a mock function with given fields:

func (*Tree) TouchFile

func (_m *Tree) TouchFile(ctx context.Context, _a1 *node.Node, markprocessing bool, mtime string) error

TouchFile provides a mock function with given fields: ctx, _a1, markprocessing, mtime

func (*Tree) WriteBlob

func (_m *Tree) WriteBlob(_a0 *node.Node, source string) error

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

type Tree_CreateDir_Call added in v2.19.6

type Tree_CreateDir_Call struct {
	*mock.Call
}

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

func (*Tree_CreateDir_Call) Return added in v2.19.6

func (*Tree_CreateDir_Call) Run added in v2.19.6

func (_c *Tree_CreateDir_Call) Run(run func(ctx context.Context, _a1 *node.Node)) *Tree_CreateDir_Call

func (*Tree_CreateDir_Call) RunAndReturn added in v2.19.6

func (_c *Tree_CreateDir_Call) RunAndReturn(run func(context.Context, *node.Node) error) *Tree_CreateDir_Call

type Tree_DeleteBlob_Call added in v2.19.6

type Tree_DeleteBlob_Call struct {
	*mock.Call
}

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

func (*Tree_DeleteBlob_Call) Return added in v2.19.6

func (*Tree_DeleteBlob_Call) Run added in v2.19.6

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

func (*Tree_DeleteBlob_Call) RunAndReturn added in v2.19.6

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

type Tree_Delete_Call added in v2.19.6

type Tree_Delete_Call struct {
	*mock.Call
}

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

func (*Tree_Delete_Call) Return added in v2.19.6

func (_c *Tree_Delete_Call) Return(err error) *Tree_Delete_Call

func (*Tree_Delete_Call) Run added in v2.19.6

func (_c *Tree_Delete_Call) Run(run func(ctx context.Context, _a1 *node.Node)) *Tree_Delete_Call

func (*Tree_Delete_Call) RunAndReturn added in v2.19.6

func (_c *Tree_Delete_Call) RunAndReturn(run func(context.Context, *node.Node) error) *Tree_Delete_Call

type Tree_Expecter added in v2.19.6

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

func (*Tree_Expecter) CreateDir added in v2.19.6

func (_e *Tree_Expecter) CreateDir(ctx interface{}, _a1 interface{}) *Tree_CreateDir_Call

CreateDir is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *node.Node

func (*Tree_Expecter) Delete added in v2.19.6

func (_e *Tree_Expecter) Delete(ctx interface{}, _a1 interface{}) *Tree_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *node.Node

func (*Tree_Expecter) DeleteBlob added in v2.19.6

func (_e *Tree_Expecter) DeleteBlob(_a0 interface{}) *Tree_DeleteBlob_Call

DeleteBlob is a helper method to define mock.On call

  • _a0 *node.Node

func (*Tree_Expecter) GetMD added in v2.19.6

func (_e *Tree_Expecter) GetMD(ctx interface{}, _a1 interface{}) *Tree_GetMD_Call

GetMD is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *node.Node

func (*Tree_Expecter) ListFolder added in v2.19.6

func (_e *Tree_Expecter) ListFolder(ctx interface{}, _a1 interface{}) *Tree_ListFolder_Call

ListFolder is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *node.Node

func (*Tree_Expecter) Move added in v2.19.6

func (_e *Tree_Expecter) Move(ctx interface{}, oldNode interface{}, newNode interface{}) *Tree_Move_Call

Move is a helper method to define mock.On call

  • ctx context.Context
  • oldNode *node.Node
  • newNode *node.Node

func (*Tree_Expecter) Propagate added in v2.19.6

func (_e *Tree_Expecter) Propagate(ctx interface{}, _a1 interface{}, sizeDiff interface{}) *Tree_Propagate_Call

Propagate is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *node.Node
  • sizeDiff int64

func (*Tree_Expecter) PurgeRecycleItemFunc added in v2.19.6

func (_e *Tree_Expecter) PurgeRecycleItemFunc(ctx interface{}, spaceid interface{}, key interface{}, purgePath interface{}) *Tree_PurgeRecycleItemFunc_Call

PurgeRecycleItemFunc is a helper method to define mock.On call

  • ctx context.Context
  • spaceid string
  • key string
  • purgePath string

func (*Tree_Expecter) ReadBlob added in v2.19.6

func (_e *Tree_Expecter) ReadBlob(_a0 interface{}) *Tree_ReadBlob_Call

ReadBlob is a helper method to define mock.On call

  • _a0 *node.Node

func (*Tree_Expecter) RestoreRecycleItemFunc added in v2.19.6

func (_e *Tree_Expecter) RestoreRecycleItemFunc(ctx interface{}, spaceid interface{}, key interface{}, trashPath interface{}, target interface{}) *Tree_RestoreRecycleItemFunc_Call

RestoreRecycleItemFunc is a helper method to define mock.On call

  • ctx context.Context
  • spaceid string
  • key string
  • trashPath string
  • target *node.Node

func (*Tree_Expecter) Setup added in v2.19.6

func (_e *Tree_Expecter) Setup() *Tree_Setup_Call

Setup is a helper method to define mock.On call

func (*Tree_Expecter) TouchFile added in v2.19.6

func (_e *Tree_Expecter) TouchFile(ctx interface{}, _a1 interface{}, markprocessing interface{}, mtime interface{}) *Tree_TouchFile_Call

TouchFile is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *node.Node
  • markprocessing bool
  • mtime string

func (*Tree_Expecter) WriteBlob added in v2.19.6

func (_e *Tree_Expecter) WriteBlob(_a0 interface{}, source interface{}) *Tree_WriteBlob_Call

WriteBlob is a helper method to define mock.On call

  • _a0 *node.Node
  • source string

type Tree_GetMD_Call added in v2.19.6

type Tree_GetMD_Call struct {
	*mock.Call
}

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

func (*Tree_GetMD_Call) Return added in v2.19.6

func (_c *Tree_GetMD_Call) Return(_a0 fs.FileInfo, _a1 error) *Tree_GetMD_Call

func (*Tree_GetMD_Call) Run added in v2.19.6

func (_c *Tree_GetMD_Call) Run(run func(ctx context.Context, _a1 *node.Node)) *Tree_GetMD_Call

func (*Tree_GetMD_Call) RunAndReturn added in v2.19.6

func (_c *Tree_GetMD_Call) RunAndReturn(run func(context.Context, *node.Node) (fs.FileInfo, error)) *Tree_GetMD_Call

type Tree_ListFolder_Call added in v2.19.6

type Tree_ListFolder_Call struct {
	*mock.Call
}

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

func (*Tree_ListFolder_Call) Return added in v2.19.6

func (_c *Tree_ListFolder_Call) Return(_a0 []*node.Node, _a1 error) *Tree_ListFolder_Call

func (*Tree_ListFolder_Call) Run added in v2.19.6

func (_c *Tree_ListFolder_Call) Run(run func(ctx context.Context, _a1 *node.Node)) *Tree_ListFolder_Call

func (*Tree_ListFolder_Call) RunAndReturn added in v2.19.6

func (_c *Tree_ListFolder_Call) RunAndReturn(run func(context.Context, *node.Node) ([]*node.Node, error)) *Tree_ListFolder_Call

type Tree_Move_Call added in v2.19.6

type Tree_Move_Call struct {
	*mock.Call
}

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

func (*Tree_Move_Call) Return added in v2.19.6

func (_c *Tree_Move_Call) Return(err error) *Tree_Move_Call

func (*Tree_Move_Call) Run added in v2.19.6

func (_c *Tree_Move_Call) Run(run func(ctx context.Context, oldNode *node.Node, newNode *node.Node)) *Tree_Move_Call

func (*Tree_Move_Call) RunAndReturn added in v2.19.6

func (_c *Tree_Move_Call) RunAndReturn(run func(context.Context, *node.Node, *node.Node) error) *Tree_Move_Call

type Tree_Propagate_Call added in v2.19.6

type Tree_Propagate_Call struct {
	*mock.Call
}

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

func (*Tree_Propagate_Call) Return added in v2.19.6

func (*Tree_Propagate_Call) Run added in v2.19.6

func (_c *Tree_Propagate_Call) Run(run func(ctx context.Context, _a1 *node.Node, sizeDiff int64)) *Tree_Propagate_Call

func (*Tree_Propagate_Call) RunAndReturn added in v2.19.6

func (_c *Tree_Propagate_Call) RunAndReturn(run func(context.Context, *node.Node, int64) error) *Tree_Propagate_Call

type Tree_PurgeRecycleItemFunc_Call added in v2.19.6

type Tree_PurgeRecycleItemFunc_Call struct {
	*mock.Call
}

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

func (*Tree_PurgeRecycleItemFunc_Call) Return added in v2.19.6

func (*Tree_PurgeRecycleItemFunc_Call) Run added in v2.19.6

func (_c *Tree_PurgeRecycleItemFunc_Call) Run(run func(ctx context.Context, spaceid string, key string, purgePath string)) *Tree_PurgeRecycleItemFunc_Call

func (*Tree_PurgeRecycleItemFunc_Call) RunAndReturn added in v2.19.6

type Tree_ReadBlob_Call added in v2.19.6

type Tree_ReadBlob_Call struct {
	*mock.Call
}

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

func (*Tree_ReadBlob_Call) Return added in v2.19.6

func (*Tree_ReadBlob_Call) Run added in v2.19.6

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

func (*Tree_ReadBlob_Call) RunAndReturn added in v2.19.6

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

type Tree_RestoreRecycleItemFunc_Call added in v2.19.6

type Tree_RestoreRecycleItemFunc_Call struct {
	*mock.Call
}

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

func (*Tree_RestoreRecycleItemFunc_Call) Return added in v2.19.6

func (*Tree_RestoreRecycleItemFunc_Call) Run added in v2.19.6

func (_c *Tree_RestoreRecycleItemFunc_Call) Run(run func(ctx context.Context, spaceid string, key string, trashPath string, target *node.Node)) *Tree_RestoreRecycleItemFunc_Call

func (*Tree_RestoreRecycleItemFunc_Call) RunAndReturn added in v2.19.6

type Tree_Setup_Call added in v2.19.6

type Tree_Setup_Call struct {
	*mock.Call
}

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

func (*Tree_Setup_Call) Return added in v2.19.6

func (_c *Tree_Setup_Call) Return(_a0 error) *Tree_Setup_Call

func (*Tree_Setup_Call) Run added in v2.19.6

func (_c *Tree_Setup_Call) Run(run func()) *Tree_Setup_Call

func (*Tree_Setup_Call) RunAndReturn added in v2.19.6

func (_c *Tree_Setup_Call) RunAndReturn(run func() error) *Tree_Setup_Call

type Tree_TouchFile_Call added in v2.19.6

type Tree_TouchFile_Call struct {
	*mock.Call
}

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

func (*Tree_TouchFile_Call) Return added in v2.19.6

func (*Tree_TouchFile_Call) Run added in v2.19.6

func (_c *Tree_TouchFile_Call) Run(run func(ctx context.Context, _a1 *node.Node, markprocessing bool, mtime string)) *Tree_TouchFile_Call

func (*Tree_TouchFile_Call) RunAndReturn added in v2.19.6

func (_c *Tree_TouchFile_Call) RunAndReturn(run func(context.Context, *node.Node, bool, string) error) *Tree_TouchFile_Call

type Tree_WriteBlob_Call added in v2.19.6

type Tree_WriteBlob_Call struct {
	*mock.Call
}

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

func (*Tree_WriteBlob_Call) Return added in v2.19.6

func (*Tree_WriteBlob_Call) Run added in v2.19.6

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

func (*Tree_WriteBlob_Call) RunAndReturn added in v2.19.6

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

Jump to

Keyboard shortcuts

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