Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHTTPServer ¶
type MockHTTPServer struct { *httptest.Server Counter int Response interface{} // contains filtered or unexported fields }
MockHTTPServer is a mocked HTTP server
func MockHTTP ¶
func MockHTTP(s *suite.Suite, response interface{}) (mock *MockHTTPServer, close func())
MockHTTP creates a new MockHTTPServer given a response, or array of responses
type MockJSONRPCServer ¶
type MockJSONRPCServer struct { *httptest.Server Counter int Response interface{} // contains filtered or unexported fields }
MockJSONRPCServer is a mocked RPC server
func MockJSONRPC ¶
func MockJSONRPC(s *suite.Suite, response interface{}) (mock *MockJSONRPCServer, close func())
MockJSONRPC creates a new MockJSONRPCServer given a response, or array of responses
type MockXcTx ¶ added in v0.3.0
type MockXcTx struct {
SerializedSignedTx []byte
}
An object that only supports .Serialize for SubmitTx()
func (*MockXcTx) AddSignatures ¶ added in v0.3.0
func (tx *MockXcTx) AddSignatures(...xc.TxSignature) error
Click to show internal directories.
Click to hide internal directories.