Documentation ¶
Overview ¶
Package testhelper is used for setting up ominrpc instances for any number of backends. this is purely a helper package and should be used solely for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetURL ¶
func GetURL(baseHost string, backend backends.SimulatedTestBackend) string
GetURL gets the url for a given backend given the base host.
func NewOmnirpcServer ¶
func NewOmnirpcServer(ctx context.Context, tb testing.TB, backends ...backends.SimulatedTestBackend) string
NewOmnirpcServer creates a new omnirpc server with all the test backends passed in. since these are all mocked geth instances, these are single confirmation instances only. a string is returned with the base url for the omnirpc server.
context is respected and the server will be killed when the context is done.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.