Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeNode ¶
type FakeNode struct {
NodePort int
InitDone chan struct{}
// contains filtered or unexported fields
}
FakeNode simulate spacemesh node.
func CreateFakeSMNode ¶
func CreateFakeSMNode(startTime time.Time, seedGen *testseed.SeedGenerator, seedConf *testseed.TestServerSeed) (*FakeNode, error)
CreateFakeSMNode create a fake spacemesh node.
type TestAPIService ¶
TestAPIService wrapper over fake api service.
func StartTestAPIServiceV2 ¶
func StartTestAPIServiceV2(db *storage.Storage, dbReader *storagereader.Reader) (*TestAPIService, error)
StartTestAPIServiceV2 start test api service with refacored router.
func (*TestAPIService) Get ¶
func (tx *TestAPIService) Get(t *testing.T, path string) *testutils.TestResponse
Get allow to execute GET request to the fake server.
Click to show internal directories.
Click to hide internal directories.