mocks

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 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 AuthzKeeper

type AuthzKeeper struct {
	mock.Mock
}

AuthzKeeper is an autogenerated mock type for the AuthzKeeper type

func NewAuthzKeeper

func NewAuthzKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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 added in v0.24.0

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 added in v0.24.0

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 added in v0.24.0

func (*AuthzKeeper_DeleteGrant_Call) Run added in v0.24.0

func (*AuthzKeeper_DeleteGrant_Call) RunAndReturn added in v0.24.0

type AuthzKeeper_Expecter added in v0.24.0

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

func (*AuthzKeeper_Expecter) DeleteGrant added in v0.24.0

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 added in v0.24.0

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 added in v0.24.0

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 added in v0.24.0

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 added in v0.24.0

func (*AuthzKeeper_GetCleanAuthorization_Call) Run added in v0.24.0

func (*AuthzKeeper_GetCleanAuthorization_Call) RunAndReturn added in v0.24.0

type AuthzKeeper_SaveGrant_Call added in v0.24.0

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 added in v0.24.0

func (*AuthzKeeper_SaveGrant_Call) Run added in v0.24.0

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

func (*AuthzKeeper_SaveGrant_Call) RunAndReturn added in v0.24.0

Jump to

Keyboard shortcuts

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