mock

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package mock contains utilities and types that simulate behaviour of other components of the app, with the possibility to force outputs. outcomes and errors

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SupplyKeeper

type SupplyKeeper interface {
	SendCoinsFromAccountToModule(ctx sdk.Context, addr sdk.AccAddress, moduleName string, coins sdk.Coins) error
}

type SupplyKeeperMock

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

func NewSupplyKeeper

func NewSupplyKeeper() *SupplyKeeperMock

func (*SupplyKeeperMock) Mock

func (s *SupplyKeeperMock) Mock() SupplyKeeper

func (*SupplyKeeperMock) SetSendCoinsFromAccountToModule

func (s *SupplyKeeperMock) SetSendCoinsFromAccountToModule(f func(ctx sdk.Context, addr sdk.AccAddress, moduleName string, coins sdk.Coins) error)

Jump to

Keyboard shortcuts

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