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
Click to show internal directories.
Click to hide internal directories.