mocks

package
v1.0.1-sph Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthzKeeper

type AuthzKeeper struct {
	mock.Mock
}

AuthzKeeper is an autogenerated mock type for the AuthzKeeper type

func NewAuthzKeeper

func NewAuthzKeeper(t mockConstructorTestingTNewAuthzKeeper) *AuthzKeeper

NewAuthzKeeper creates a new instance of AuthzKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AuthzKeeper) DeleteGrant

func (_m *AuthzKeeper) DeleteGrant(ctx types.Context, grantee types.AccAddress, granter types.AccAddress, msgType string) error

DeleteGrant provides a mock function with given fields: ctx, grantee, granter, msgType

func (*AuthzKeeper) EXPECT

func (_m *AuthzKeeper) EXPECT() *AuthzKeeper_Expecter

func (*AuthzKeeper) GetCleanAuthorization

func (_m *AuthzKeeper) GetCleanAuthorization(ctx types.Context, grantee types.AccAddress, granter types.AccAddress, msgType string) (authz.Authorization, time.Time)

GetCleanAuthorization provides a mock function with given fields: ctx, grantee, granter, msgType

func (*AuthzKeeper) SaveGrant

func (_m *AuthzKeeper) SaveGrant(ctx types.Context, grantee types.AccAddress, granter types.AccAddress, authorization authz.Authorization, expiration time.Time) error

SaveGrant provides a mock function with given fields: ctx, grantee, granter, authorization, expiration

type AuthzKeeper_DeleteGrant_Call

type AuthzKeeper_DeleteGrant_Call struct {
	*mock.Call
}

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

func (*AuthzKeeper_DeleteGrant_Call) Return

func (*AuthzKeeper_DeleteGrant_Call) Run

func (*AuthzKeeper_DeleteGrant_Call) RunAndReturn

type AuthzKeeper_Expecter

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

func (*AuthzKeeper_Expecter) DeleteGrant

func (_e *AuthzKeeper_Expecter) DeleteGrant(ctx interface{}, grantee interface{}, granter interface{}, msgType interface{}) *AuthzKeeper_DeleteGrant_Call

DeleteGrant is a helper method to define mock.On call

  • ctx types.Context
  • grantee types.AccAddress
  • granter types.AccAddress
  • msgType string

func (*AuthzKeeper_Expecter) GetCleanAuthorization

func (_e *AuthzKeeper_Expecter) GetCleanAuthorization(ctx interface{}, grantee interface{}, granter interface{}, msgType interface{}) *AuthzKeeper_GetCleanAuthorization_Call

GetCleanAuthorization is a helper method to define mock.On call

  • ctx types.Context
  • grantee types.AccAddress
  • granter types.AccAddress
  • msgType string

func (*AuthzKeeper_Expecter) SaveGrant

func (_e *AuthzKeeper_Expecter) SaveGrant(ctx interface{}, grantee interface{}, granter interface{}, authorization interface{}, expiration interface{}) *AuthzKeeper_SaveGrant_Call

SaveGrant is a helper method to define mock.On call

  • ctx types.Context
  • grantee types.AccAddress
  • granter types.AccAddress
  • authorization authz.Authorization
  • expiration time.Time

type AuthzKeeper_GetCleanAuthorization_Call

type AuthzKeeper_GetCleanAuthorization_Call struct {
	*mock.Call
}

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

func (*AuthzKeeper_GetCleanAuthorization_Call) Return

func (*AuthzKeeper_GetCleanAuthorization_Call) Run

type AuthzKeeper_SaveGrant_Call

type AuthzKeeper_SaveGrant_Call struct {
	*mock.Call
}

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

func (*AuthzKeeper_SaveGrant_Call) Return

func (*AuthzKeeper_SaveGrant_Call) Run

func (_c *AuthzKeeper_SaveGrant_Call) Run(run func(ctx types.Context, grantee types.AccAddress, granter types.AccAddress, authorization authz.Authorization, expiration time.Time)) *AuthzKeeper_SaveGrant_Call

Jump to

Keyboard shortcuts

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