Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestServerFromServiceContext ¶
func NewTestServerFromServiceContext(port int, sc servicecontext.ServiceContext) (*httptest.Server, error)
NewTestServerFromServiceContext takes in a port and already constructed ServiceContext and creates an REST v2 API server. This is very useful when testing, especially when mocking out sections of the ServiceContext to make sure request occur as expected.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.