testing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: AGPL-3.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTestResources

func GetTestResources(beaconConfig *db.Config) *config.NetworkResources

Returns a network resources instance with local testing network values

Types

type HyperdriveTestManager

type HyperdriveTestManager struct {
	*osha.TestManager
	// contains filtered or unexported fields
}

HyperdriveTestManager provides bootstrapping and a test service provider, useful for testing

func NewHyperdriveTestManager

func NewHyperdriveTestManager(address string, cfg *hdconfig.HyperdriveConfig, resources *config.NetworkResources) (*HyperdriveTestManager, error)

Creates a new HyperdriveTestManager instance. `address` is the address to bind the Hyperdrive daemon to.

func NewHyperdriveTestManagerWithDefaults

func NewHyperdriveTestManagerWithDefaults(address string) (*HyperdriveTestManager, error)

Creates a new HyperdriveTestManager instance with default test artifacts. `address` is the address to bind the Hyperdrive daemon to.

func (*HyperdriveTestManager) Close

func (m *HyperdriveTestManager) Close() error

Closes the Hyperdrive test manager, shutting down the daemon

func (*HyperdriveTestManager) GetApiClient

func (m *HyperdriveTestManager) GetApiClient() *client.ApiClient

Returns the Hyperdrive Daemon client

func (*HyperdriveTestManager) GetServerManager

func (m *HyperdriveTestManager) GetServerManager() *server.ServerManager

Returns the Hyperdrive Daemon server

func (*HyperdriveTestManager) GetServiceProvider

func (m *HyperdriveTestManager) GetServiceProvider() *common.ServiceProvider

Returns the service provider for the test environment

Jump to

Keyboard shortcuts

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