mocks

package
v0.0.0-...-500bc43 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMockedResponses

func GetMockedResponses() map[string]*btcjson.Response

func SetResponse

func SetResponse(t *testing.T, method string, filename string)

Types

type MockedEthNode

type MockedEthNode struct {
	*httptest.Server
}

func NewMockEthNode

func NewMockEthNode(reqRecorder *[]byte, responses map[string]*btcjson.Response) *MockedEthNode

NewMockedEthNode creates a new mock qtumd server with the given handler. Params:

  • request: a buffer used to record the request sent to the server
  • responses: a map of method names to json responses

Jump to

Keyboard shortcuts

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