runner

package
v0.0.0-...-5d6ca32 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	Org1Name      string
	Org2Name      string
	Org1AdminUser string
	Org2AdminUser string
	Org1User      string
	Org2User      string
	ChannelID     string
	CCPath        string
	// contains filtered or unexported fields
}

Runner provides common data for running integration tests.

func New

func New() *Runner

New constructs a Runner instance using defaults.

func NewWithExampleCC

func NewWithExampleCC() *Runner

NewWithExampleCC constructs a Runner instance using defaults and configures to install example CC.

func (*Runner) ExampleChaincodeID

func (r *Runner) ExampleChaincodeID() string

ExampleChaincodeID returns the generated chaincode ID for example CC.

func (*Runner) Initialize

func (r *Runner) Initialize()

Initialize prepares for the test run.

func (*Runner) Run

func (r *Runner) Run(m *testing.M)

Run executes the test suite against ExampleCC.

func (*Runner) SDK

func (r *Runner) SDK() *fabsdk.FabricSDK

SDK returns the instantiated SDK instance. Panics if nil.

func (*Runner) TestSetup

func (r *Runner) TestSetup() *integration.BaseSetupImpl

TestSetup returns the integration test setup.

Jump to

Keyboard shortcuts

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