Documentation
¶
Index ¶
- func BeforeOnce(beforeBlock func())
- func FHTTPMeasure(description string, setup func(map[string]interface{}), ...) bool
- func Get(app *api.App, url string) (int, string)
- func GetDefaultTestApp() *api.App
- func GetDefaultTestServer() (*remote.Server, error)
- func GetRPCTestClient(portOrNil ...int) (remote.MQTTClient, error)
- func HTTPMeasure(description string, setup func(map[string]interface{}), ...) bool
- func InitializeTestServer(app *api.App) *httptest.Server
- func PostBody(app *api.App, url string, payload string) (int, string)
- func PostJSON(app *api.App, url string, payload interface{}) (int, string)
- func XHTTPMeasure(description string, setup func(map[string]interface{}), ...) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeforeOnce ¶ added in v0.3.0
func BeforeOnce(beforeBlock func())
BeforeOnce runs the before each block only once
func FHTTPMeasure ¶ added in v0.3.0
func FHTTPMeasure(description string, setup func(map[string]interface{}), f func(*httptest.Server, map[string]interface{}), timeout float64) bool
FHTTPMeasure runs the specified specs in an http test
func GetDefaultTestApp ¶ added in v0.3.0
GetDefaultTestApp returns a new arkadiko API Application bound to 0.0.0.0:8888 for test
func GetDefaultTestServer ¶ added in v0.4.0
GetDefaultTestServer returns a new arkadiko RPC Server bound to 0.0.0.0:8891 for test
func GetRPCTestClient ¶ added in v0.4.0
func GetRPCTestClient(portOrNil ...int) (remote.MQTTClient, error)
GetRPCTestClient returns a connected test client
func HTTPMeasure ¶ added in v0.3.0
func HTTPMeasure(description string, setup func(map[string]interface{}), f func(*httptest.Server, map[string]interface{}), timeout float64) bool
HTTPMeasure runs the specified specs in an http test
func InitializeTestServer ¶ added in v0.3.0
InitializeTestServer method
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.