Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ResponseRecorder ¶
type ResponseRecorder struct { *httptest.ResponseRecorder // contains filtered or unexported fields }
ResponseRecorder wraps recorder to support CloseNotify
func NewResponseRecorder ¶
func NewResponseRecorder() *ResponseRecorder
NewResponseRecorder returns a new instance
func (*ResponseRecorder) CloseNotify ¶
func (r *ResponseRecorder) CloseNotify() <-chan bool
CloseNotify waits for closed message This is required method for go-gin framework
type TestCase ¶
TestCase is a test case for HTTP request
func NewTestCase ¶
func NewTestCase(name string, method string, path string, expectedStatus int, expectedVerdict string) *TestCase
NewTestCase returns a new HTTP test case. Panic if error
func NewUploadTestCase ¶
func NewUploadTestCase(name string, path string, reader io.Reader, fields map[string]string, expectedStatus int, expectedVerdict string) *TestCase
NewUploadTestCase creates new upload test case
func (*TestCase) Execute ¶
Execute performs HTTP request to the target server The request URL must contain remote server address
func (*TestCase) WithHeader ¶
WithHeader adds header
Click to show internal directories.
Click to hide internal directories.