mocks

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	mock.Mock
}

Checker is an autogenerated mock type for the Checker type

func NewChecker

func NewChecker(t interface {
	mock.TestingT
	Cleanup(func())
}) *Checker

NewChecker creates a new instance of Checker. 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 (*Checker) EXPECT

func (_m *Checker) EXPECT() *Checker_Expecter

func (*Checker) IsWhitelisted

func (_m *Checker) IsWhitelisted(ctx context.Context, evmAddress string) (bool, error)

IsWhitelisted provides a mock function with given fields: ctx, evmAddress

type Checker_Expecter

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

func (*Checker_Expecter) IsWhitelisted

func (_e *Checker_Expecter) IsWhitelisted(ctx interface{}, evmAddress interface{}) *Checker_IsWhitelisted_Call

IsWhitelisted is a helper method to define mock.On call

  • ctx context.Context
  • evmAddress string

type Checker_IsWhitelisted_Call

type Checker_IsWhitelisted_Call struct {
	*mock.Call
}

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

func (*Checker_IsWhitelisted_Call) Return

func (*Checker_IsWhitelisted_Call) Run

func (_c *Checker_IsWhitelisted_Call) Run(run func(ctx context.Context, evmAddress string)) *Checker_IsWhitelisted_Call

func (*Checker_IsWhitelisted_Call) RunAndReturn

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. 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 (*Manager) Add

func (_m *Manager) Add(ctx context.Context, evmAddress string, note string) error

Add provides a mock function with given fields: ctx, evmAddress, note

func (*Manager) EXPECT

func (_m *Manager) EXPECT() *Manager_Expecter

func (*Manager) List

func (_m *Manager) List(ctx context.Context, cursor string, limit int) (*whitelist.Page, error)

List provides a mock function with given fields: ctx, cursor, limit

func (*Manager) Remove

func (_m *Manager) Remove(ctx context.Context, evmAddress string) error

Remove provides a mock function with given fields: ctx, evmAddress

type Manager_Add_Call

type Manager_Add_Call struct {
	*mock.Call
}

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

func (*Manager_Add_Call) Return

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

func (*Manager_Add_Call) Run

func (_c *Manager_Add_Call) Run(run func(ctx context.Context, evmAddress string, note string)) *Manager_Add_Call

func (*Manager_Add_Call) RunAndReturn

func (_c *Manager_Add_Call) RunAndReturn(run func(context.Context, string, string) error) *Manager_Add_Call

type Manager_Expecter

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

func (*Manager_Expecter) Add

func (_e *Manager_Expecter) Add(ctx interface{}, evmAddress interface{}, note interface{}) *Manager_Add_Call

Add is a helper method to define mock.On call

  • ctx context.Context
  • evmAddress string
  • note string

func (*Manager_Expecter) List

func (_e *Manager_Expecter) List(ctx interface{}, cursor interface{}, limit interface{}) *Manager_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • cursor string
  • limit int

func (*Manager_Expecter) Remove

func (_e *Manager_Expecter) Remove(ctx interface{}, evmAddress interface{}) *Manager_Remove_Call

Remove is a helper method to define mock.On call

  • ctx context.Context
  • evmAddress string

type Manager_List_Call

type Manager_List_Call struct {
	*mock.Call
}

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

func (*Manager_List_Call) Return

func (_c *Manager_List_Call) Return(_a0 *whitelist.Page, _a1 error) *Manager_List_Call

func (*Manager_List_Call) Run

func (_c *Manager_List_Call) Run(run func(ctx context.Context, cursor string, limit int)) *Manager_List_Call

func (*Manager_List_Call) RunAndReturn

func (_c *Manager_List_Call) RunAndReturn(run func(context.Context, string, int) (*whitelist.Page, error)) *Manager_List_Call

type Manager_Remove_Call

type Manager_Remove_Call struct {
	*mock.Call
}

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

func (*Manager_Remove_Call) Return

func (*Manager_Remove_Call) Run

func (_c *Manager_Remove_Call) Run(run func(ctx context.Context, evmAddress string)) *Manager_Remove_Call

func (*Manager_Remove_Call) RunAndReturn

func (_c *Manager_Remove_Call) RunAndReturn(run func(context.Context, string) error) *Manager_Remove_Call

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Store

NewStore creates a new instance of Store. 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 (*Store) AddToWhitelist

func (_m *Store) AddToWhitelist(ctx context.Context, evmAddress string, note string) error

AddToWhitelist provides a mock function with given fields: ctx, evmAddress, note

func (*Store) EXPECT

func (_m *Store) EXPECT() *Store_Expecter

func (*Store) IsWhitelisted

func (_m *Store) IsWhitelisted(ctx context.Context, evmAddress string) (bool, error)

IsWhitelisted provides a mock function with given fields: ctx, evmAddress

func (*Store) ListWhitelist

func (_m *Store) ListWhitelist(ctx context.Context, cursor string, limit int) ([]*user.WhitelistEntry, error)

ListWhitelist provides a mock function with given fields: ctx, cursor, limit

func (*Store) RemoveFromWhitelist

func (_m *Store) RemoveFromWhitelist(ctx context.Context, evmAddress string) (bool, error)

RemoveFromWhitelist provides a mock function with given fields: ctx, evmAddress

type Store_AddToWhitelist_Call

type Store_AddToWhitelist_Call struct {
	*mock.Call
}

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

func (*Store_AddToWhitelist_Call) Return

func (*Store_AddToWhitelist_Call) Run

func (_c *Store_AddToWhitelist_Call) Run(run func(ctx context.Context, evmAddress string, note string)) *Store_AddToWhitelist_Call

func (*Store_AddToWhitelist_Call) RunAndReturn

type Store_Expecter

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

func (*Store_Expecter) AddToWhitelist

func (_e *Store_Expecter) AddToWhitelist(ctx interface{}, evmAddress interface{}, note interface{}) *Store_AddToWhitelist_Call

AddToWhitelist is a helper method to define mock.On call

  • ctx context.Context
  • evmAddress string
  • note string

func (*Store_Expecter) IsWhitelisted

func (_e *Store_Expecter) IsWhitelisted(ctx interface{}, evmAddress interface{}) *Store_IsWhitelisted_Call

IsWhitelisted is a helper method to define mock.On call

  • ctx context.Context
  • evmAddress string

func (*Store_Expecter) ListWhitelist

func (_e *Store_Expecter) ListWhitelist(ctx interface{}, cursor interface{}, limit interface{}) *Store_ListWhitelist_Call

ListWhitelist is a helper method to define mock.On call

  • ctx context.Context
  • cursor string
  • limit int

func (*Store_Expecter) RemoveFromWhitelist

func (_e *Store_Expecter) RemoveFromWhitelist(ctx interface{}, evmAddress interface{}) *Store_RemoveFromWhitelist_Call

RemoveFromWhitelist is a helper method to define mock.On call

  • ctx context.Context
  • evmAddress string

type Store_IsWhitelisted_Call

type Store_IsWhitelisted_Call struct {
	*mock.Call
}

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

func (*Store_IsWhitelisted_Call) Return

func (*Store_IsWhitelisted_Call) Run

func (_c *Store_IsWhitelisted_Call) Run(run func(ctx context.Context, evmAddress string)) *Store_IsWhitelisted_Call

func (*Store_IsWhitelisted_Call) RunAndReturn

type Store_ListWhitelist_Call

type Store_ListWhitelist_Call struct {
	*mock.Call
}

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

func (*Store_ListWhitelist_Call) Return

func (*Store_ListWhitelist_Call) Run

func (_c *Store_ListWhitelist_Call) Run(run func(ctx context.Context, cursor string, limit int)) *Store_ListWhitelist_Call

func (*Store_ListWhitelist_Call) RunAndReturn

type Store_RemoveFromWhitelist_Call

type Store_RemoveFromWhitelist_Call struct {
	*mock.Call
}

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

func (*Store_RemoveFromWhitelist_Call) Return

func (*Store_RemoveFromWhitelist_Call) Run

func (*Store_RemoveFromWhitelist_Call) RunAndReturn

Jump to

Keyboard shortcuts

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