test

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const CONSISTENTLY_ACCEPTANCE_TIMEOUT = 100 * time.Millisecond
View Source
const CONSISTENTLY_ADAPTER_TIMEOUT = 100 * time.Millisecond
View Source
const CONSISTENTLY_DOCKER_E2E_TIMEOUT = 500 * time.Millisecond
View Source
const CONSISTENTLY_LOCAL_E2E_TIMEOUT = 200 * time.Millisecond
View Source
const EVENTUALLY_ACCEPTANCE_TIMEOUT = 100 * time.Millisecond
View Source
const EVENTUALLY_ADAPTER_TIMEOUT = 200 * time.Millisecond
View Source
const EVENTUALLY_DOCKER_E2E_TIMEOUT = 1000 * time.Millisecond
View Source
const EVENTUALLY_LOCAL_E2E_TIMEOUT = 400 * time.Millisecond

Variables

This section is empty.

Functions

func AssertCmpEqual

func AssertCmpEqual(t *testing.T, expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool

func Consistently

func Consistently(timeout time.Duration, f func() bool) bool

func ConsistentlyVerify

func ConsistentlyVerify(timeout time.Duration, mocks ...mock.HasVerify) error

func CreateTempDirForTest

func CreateTempDirForTest(t *testing.T) string

func Eventually

func Eventually(timeout time.Duration, f func() bool) bool

func EventuallyVerify

func EventuallyVerify(timeout time.Duration, mocks ...mock.HasVerify) error

func RequireCmpEqual

func RequireCmpEqual(t *testing.T, expected interface{}, actual interface{}, msgAndArgs ...interface{})

func RequireDoesNotContainNil added in v0.7.1

func RequireDoesNotContainNil(t *testing.T, obj interface{}) bool

func RequireResult added in v1.2.1

func RequireResult(t testing.TB, result protocol.ExecutionResult, tx transactionStatuser, msg string, args ...interface{})

func RequireSuccess

func RequireSuccess(t testing.TB, tx transactionStatuser, msg string, args ...interface{})

func RetryAndLog added in v1.2.1

func RetryAndLog(timeout time.Duration, logger log.Logger, f func() error) error

Types

This section is empty.

Directories

Path Synopsis
crypto
e2e
sdk
contracts/fixed_bytes
Contract that shows that contract with public function that accept and return types of bool, big.Int, [20]byte and [32]byte
Contract that shows that contract with public function that accept and return types of bool, big.Int, [20]byte and [32]byte
contracts/slices
Contract that shows that contract with public function that accept and return argument as slices of types
Contract that shows that contract with public function that accept and return argument as slices of types

Jump to

Keyboard shortcuts

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