Documentation ¶
Index ¶
- type AuthzKeeper
- func (_m *AuthzKeeper) DeleteGrant(ctx types.Context, grantee types.AccAddress, granter types.AccAddress, ...) error
- func (_m *AuthzKeeper) EXPECT() *AuthzKeeper_Expecter
- func (_m *AuthzKeeper) GetCleanAuthorization(ctx types.Context, grantee types.AccAddress, granter types.AccAddress, ...) (authz.Authorization, time.Time)
- func (_m *AuthzKeeper) SaveGrant(ctx types.Context, grantee types.AccAddress, granter types.AccAddress, ...) error
- type AuthzKeeper_DeleteGrant_Call
- func (_c *AuthzKeeper_DeleteGrant_Call) Return(_a0 error) *AuthzKeeper_DeleteGrant_Call
- func (_c *AuthzKeeper_DeleteGrant_Call) Run(...) *AuthzKeeper_DeleteGrant_Call
- func (_c *AuthzKeeper_DeleteGrant_Call) RunAndReturn(run func(types.Context, types.AccAddress, types.AccAddress, string) error) *AuthzKeeper_DeleteGrant_Call
- type AuthzKeeper_Expecter
- func (_e *AuthzKeeper_Expecter) DeleteGrant(ctx interface{}, grantee interface{}, granter interface{}, msgType interface{}) *AuthzKeeper_DeleteGrant_Call
- func (_e *AuthzKeeper_Expecter) GetCleanAuthorization(ctx interface{}, grantee interface{}, granter interface{}, msgType interface{}) *AuthzKeeper_GetCleanAuthorization_Call
- func (_e *AuthzKeeper_Expecter) SaveGrant(ctx interface{}, grantee interface{}, granter interface{}, ...) *AuthzKeeper_SaveGrant_Call
- type AuthzKeeper_GetCleanAuthorization_Call
- func (_c *AuthzKeeper_GetCleanAuthorization_Call) Return(cap authz.Authorization, expiration time.Time) *AuthzKeeper_GetCleanAuthorization_Call
- func (_c *AuthzKeeper_GetCleanAuthorization_Call) Run(...) *AuthzKeeper_GetCleanAuthorization_Call
- func (_c *AuthzKeeper_GetCleanAuthorization_Call) RunAndReturn(...) *AuthzKeeper_GetCleanAuthorization_Call
- type AuthzKeeper_SaveGrant_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthzKeeper ¶
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 ¶ 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
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 (_c *AuthzKeeper_DeleteGrant_Call) Return(_a0 error) *AuthzKeeper_DeleteGrant_Call
func (*AuthzKeeper_DeleteGrant_Call) Run ¶ added in v0.24.0
func (_c *AuthzKeeper_DeleteGrant_Call) Run(run func(ctx types.Context, grantee types.AccAddress, granter types.AccAddress, msgType string)) *AuthzKeeper_DeleteGrant_Call
func (*AuthzKeeper_DeleteGrant_Call) RunAndReturn ¶ added in v0.24.0
func (_c *AuthzKeeper_DeleteGrant_Call) RunAndReturn(run func(types.Context, types.AccAddress, types.AccAddress, string) error) *AuthzKeeper_DeleteGrant_Call
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
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 (_c *AuthzKeeper_GetCleanAuthorization_Call) Return(cap authz.Authorization, expiration time.Time) *AuthzKeeper_GetCleanAuthorization_Call
func (*AuthzKeeper_GetCleanAuthorization_Call) Run ¶ added in v0.24.0
func (_c *AuthzKeeper_GetCleanAuthorization_Call) Run(run func(ctx types.Context, grantee types.AccAddress, granter types.AccAddress, msgType string)) *AuthzKeeper_GetCleanAuthorization_Call
func (*AuthzKeeper_GetCleanAuthorization_Call) RunAndReturn ¶ added in v0.24.0
func (_c *AuthzKeeper_GetCleanAuthorization_Call) RunAndReturn(run func(types.Context, types.AccAddress, types.AccAddress, string) (authz.Authorization, time.Time)) *AuthzKeeper_GetCleanAuthorization_Call
type AuthzKeeper_SaveGrant_Call ¶ added in v0.24.0
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 (_c *AuthzKeeper_SaveGrant_Call) Return(_a0 error) *AuthzKeeper_SaveGrant_Call
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
func (_c *AuthzKeeper_SaveGrant_Call) RunAndReturn(run func(types.Context, types.AccAddress, types.AccAddress, authz.Authorization, time.Time) error) *AuthzKeeper_SaveGrant_Call