Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockServer ¶
type MockServer struct { T *testing.T ExpectedURL string ExpectedMethod string StatusCode int ExpectedRequest string Response string SkipRequestBody bool }
MockServer struct is used to test the how the client sends a request and responds to a servers response
func (*MockServer) GetClient ¶
func (m *MockServer) GetClient() (*repository.Client, func())
GetClient returns a client to the MockServer
func (*MockServer) GetHTTPServer ¶
func (m *MockServer) GetHTTPServer() *httptest.Server
GetHTTPServer returns the server part of the MockServer
Click to show internal directories.
Click to hide internal directories.