testutil

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2018 License: Apache-2.0 Imports: 23 Imported by: 2

Documentation

Index

Constants

View Source
const (
	KeyPasswd = "0123456789"
	KeyAlgo   = "ed25519"
	KeyName   = "test"
)

Variables

This section is empty.

Functions

func CreateAccount

func CreateAccount(t *testing.T, state state.State) (*types.Account, crypto.PrivKey)

func CreateDeployment

func CreateDeployment(t *testing.T, app apptypes.Application, account *types.Account, key *crypto.PrivKey, nonce uint64) *types.Deployment

func CreateFulfillment

func CreateFulfillment(t *testing.T, app apptypes.Application, provider base.Bytes, key *crypto.PrivKey, deployment base.Bytes, group, order uint64, price uint32) *types.Fulfillment

func CreateLease

func CreateLease(t *testing.T, app apptypes.Application, provider base.Bytes, key *crypto.PrivKey, deployment base.Bytes, group, order uint64, price uint32) *types.Lease

func CreateOrder

func CreateOrder(t *testing.T, app apptypes.Application, account *types.Account, key *crypto.PrivKey, deploymentAddress base.Bytes, groupSeq, orderSeq uint64) *types.Order

func CreateProvider

func CreateProvider(t *testing.T, app apptypes.Application, account *types.Account, key *crypto.PrivKey, nonce uint64) *types.Provider

func Deployment

func Deployment(tenant base.Bytes, nonce uint64) *types.Deployment

func Fulfillment

func Fulfillment(provider base.Bytes, deplyment base.Bytes, group, order uint64, price uint32) *types.Fulfillment

func KeyManager

func KeyManager(t *testing.T) cryptostore.Manager

func Lease

func Lease(provider base.Bytes, deplyment base.Bytes, group, order uint64, price uint32) *types.Lease

func Logger

func Logger() log.Logger

func NewApp

func NewApp(t *testing.T, gen *types.Genesis) tmtypes.Application

func NewNamedKey

func NewNamedKey(t *testing.T) (keys.Info, cryptostore.Manager)

func NewState

func NewState(t *testing.T, gen *types.Genesis) state.State

func Order

func Order(deploymentAddress base.Bytes, groupSeq, orderSeq uint64) *types.Order

func PrivateKey

func PrivateKey(t *testing.T) crypto.PrivKey

func PrivateKeySigner

func PrivateKeySigner(t *testing.T) (txutil.Signer, crypto.PrivKey)

func Provider

func Provider(account base.Bytes, nonce uint64) *types.Provider

func ProviderTx

func ProviderTx(account *types.Account, key *crypto.PrivKey, nonce uint64) *types.Tx

func RandUint32

func RandUint32() uint32

func RandUint64

func RandUint64() uint64

func SleepForThreadStart

func SleepForThreadStart(t *testing.T)

func TMConfig

func TMConfig(t *testing.T, basedir string) *tmconfig.Config

func TempDir

func TempDir(t *testing.T) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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