testutil

package
v0.0.0-...-bfcd41d Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExtStateDBProvider

func GetExtStateDBProvider(t testing.TB, dbProvider statedb.VersionedDBProvider) statedb.VersionedDBProvider

GetExtStateDBProvider returns the implementation of the versionedDBProvider

func InvokeOrSkip

func InvokeOrSkip(func())

InvokeOrSkip skips the given function.

func MarbleValue

func MarbleValue(name, color, owner string, size int) string

func SetupExtTestEnv

func SetupExtTestEnv() (addr string, cleanup func(string), stop func())

SetupExtTestEnv creates new couchdb instance for test returns couchdbd address, cleanup and stop function handle.

func SetupResources

func SetupResources() func()

SetupResources sets up all of the mock resource providers

func SetupV2Data

func SetupV2Data(t *testing.T, config *ledger.Config) func()

func Skip

func Skip(t *testing.T, msg string)

Skip skips the unit test for extensions

func TestLedgerConf

func TestLedgerConf() *ledger.Config

TestLedgerConf return the ledger configs

func TestPrivateDataConf

func TestPrivateDataConf() *pvtdatastorage.PrivateDataConfig

TestPrivateDataConf return the private data configs

Types

This section is empty.

Jump to

Keyboard shortcuts

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