Documentation
¶
Index ¶
- func GetDB() (appDB *storage.BadgerStore, stateTreeDB tmdb.DB)
- func RandomAddr() string
- func ReturnStringOnCallCount(callCount *int, ret ...string) string
- func SetTestCfg(opts ...string) (cfg *config.AppConfig, err error)
- type FileReader
- type FileWriter
- type MockObjects
- type ReadCloser
- type Reader
- type WrapReadCloser
- type WrapReadSeeker
- type WrapReadSeekerCloser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomAddr ¶
func RandomAddr() string
func ReturnStringOnCallCount ¶
ReturnStringOnCallCount returns the element in ret that correspond with the callCount value. Use this in repeatedly called callback functions when you want to determine what value to return at a given call count.
Types ¶
type FileReader ¶
FileReader provides a minimal interface for Stdout.
type FileWriter ¶
FileWriter provides a minimal interface for Stdin.
type MockObjects ¶
type MockObjects struct {
Logic *mocks.MockLogic
AtomicLogic *mocks.MockAtomicLogic
Validator *mocks.MockValidatorLogic
SysKeeper *mocks.MockSystemKeeper
AccountKeeper *mocks.MockAccountKeeper
ValidatorKeeper *mocks.MockValidatorKeeper
RepoKeeper *mocks.MockRepoKeeper
TicketManager *mocks.MockTicketManager
RepoSyncInfoKeeper *mocks.MockRepoSyncInfoKeeper
StateTree *mocks.MockTree
RemoteServer *mocks.MockRemoteServer
PushKeyKeeper *mocks.MockPushKeyKeeper
NamespaceKeeper *mocks.MockNamespaceKeeper
BlockGetter *mocks.MockBlockGetter
DHTKeeper *mocks.MockDHTKeeper
Service *mocks.MockService
}
MockObjects contains mocks for various structs
type WrapReadCloser ¶
WrapReadCloser implements ReadCloser
func (WrapReadCloser) Close ¶
func (w WrapReadCloser) Close() error
type WrapReadSeeker ¶
type WrapReadSeekerCloser ¶
func (WrapReadSeekerCloser) Close ¶
func (w WrapReadSeekerCloser) Close() error
Click to show internal directories.
Click to hide internal directories.