Documentation
¶
Overview ¶
Package testutil provides shared test helpers for truffle packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestEnv ¶
type TestEnv struct {
// URL is the base URL of the Substrate server.
URL string
// AWSConfig is a pre-configured aws.Config pointing at the Substrate server.
AWSConfig aws.Config
}
TestEnv holds a running Substrate server and a pre-configured AWS config that points all SDK calls at the emulator.
func SubstrateServer ¶
SubstrateServer starts a Substrate emulator and returns a TestEnv. The server is shut down automatically when the test ends.
func (*TestEnv) ServiceQuotasClient ¶
func (e *TestEnv) ServiceQuotasClient() *servicequotas.Client
ServiceQuotasClient returns a Service Quotas client pointed at the Substrate server.
Click to show internal directories.
Click to hide internal directories.