Documentation
¶
Index ¶
- func AssertContains(t *testing.T, got, want string)
- func AssertEqual(t *testing.T, got, want interface{})
- func AssertHttpMethod(t *testing.T, got, want string)
- func AssertNil(t *testing.T, val interface{})
- func AssertNotEqual(t *testing.T, got, want interface{})
- func AssertNotNil(t *testing.T, val interface{})
- func NewServer() (*httptest.Server, *http.ServeMux)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertContains ¶
func AssertEqual ¶
func AssertHttpMethod ¶
func AssertNotEqual ¶
func AssertNotNil ¶
func NewServer ¶ added in v0.3.0
NewServer starts and returns a new HTTP Server.
It is used for end-to-end HTTP tests and is preconfigured to return a B2 API authorization response. Users should attach their own HandleFunc functions to the returned mux.
It is callers responsibility to call Close when finished, to shut it down
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.