Documentation
¶
Index ¶
Constants ¶
View Source
const UnitTestHost = "testing.splunk.com"
View Source
const UnitTestScheme = "https"
View Source
const UnitTestTenant = "faketenant"
View Source
const UnitTestToken = "faketoken"
Variables ¶
This section is empty.
Functions ¶
func BodyToString ¶
func BodyToString(t *testing.T, requestBody io.ReadCloser) string
Tries to read a http.Request.Body and return its contents as a string
func ErrorToRequest ¶
The Go http.client do() function wraps any error from a roundtripper inside a url.Error under the Err field
func GetUnitTestClient ¶
Types ¶
type UnitTestError ¶
UnitTestError wraps an http request
func (*UnitTestError) Error ¶
func (self *UnitTestError) Error() string
This function is just here to implement the error interface
type UnitTestTransport ¶
type UnitTestTransport struct {
// contains filtered or unexported fields
}
UnitTestTransport is only used for GetUnitTestClient() to abort requests immediately
Click to show internal directories.
Click to hide internal directories.