test

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatabase

func GetDatabase(t *testing.T, cfg *configs.Config) *upstreamgorm.DB

func LoadConfig

func LoadConfig(t *testing.T) *configs.Config

LoadConfig loads test config

func NewFlowAccount

func NewFlowAccount(t *testing.T, fc flow_helpers.FlowClient, creatorAddress flow.Address, creatorKey *flow.AccountKey, creatorSigner crypto.Signer) *flow.Account

func NewFlowClient

func NewFlowClient(t *testing.T, cfg *configs.Config) flow_helpers.FlowClient

func ReadFile

func ReadFile(t *testing.T, path string) []byte

func WaitForJob

func WaitForJob(jobSvc jobs.Service, jobId string) (*jobs.Job, error)

Types

type Services

type Services interface {
	GetAccounts() accounts.Service
	GetJobs() jobs.Service
	GetTemplates() templates.Service
	GetTokens() tokens.Service
	GetTransactions() transactions.Service
	GetSystem() system.Service
	GetOps() ops.Service

	GetKeyManager() keys.Manager
	GetListener() chain_events.Listener
	GetFlowClient() flow_helpers.FlowClient
}

func GetServices

func GetServices(t *testing.T, cfg *configs.Config) Services

Jump to

Keyboard shortcuts

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