testhelper

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 16 Imported by: 3

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.

Jump to

Keyboard shortcuts

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