Documentation ¶
Index ¶
- func BoolPtr(v bool) *bool
- func Float64Ptr(v float64) *float64
- func IDPtr(v models.ID) *models.ID
- func IntPtr(v int) *int
- func ParseISO8601Timestamp(t testing.TB, timestamp string) *time.Time
- func StringPtr(v string) *string
- func TimePtr(v time.Time) *time.Time
- func UnmarshalJSONToIf(t testing.TB, jsonString string) interface{}
- type SpyHTTPHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64Ptr ¶
func UnmarshalJSONToIf ¶
Types ¶
type SpyHTTPHandler ¶
type SpyHTTPHandler struct { RequestsCount int LastMethod string LastURL *url.URL LastHeader http.Header LastRequestBody string // contains filtered or unexported fields }
func NewSpyHTTPHandler ¶
func NewSpyHTTPHandler(t testing.TB, responseCode int, responseBody []byte) *SpyHTTPHandler
func (*SpyHTTPHandler) ServeHTTP ¶
func (s *SpyHTTPHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.