Documentation
¶
Index ¶
- func DiscardBody(resp *http.Response) int
- func DumpReq(req *http.Request)
- func DumpResp(resp *http.Response)
- func HashBody(resp *http.Response) string
- func HashFile(path string, offset, length int) string
- func Purge(t *testing.T, url string)
- func RespCallback(cb func(w http.ResponseWriter, r *http.Request)) http.HandlerFunc
- func RespCallbackFile(f *MockFile, cb func(w http.ResponseWriter, r *http.Request)) http.HandlerFunc
- func RespSimpleFile(f *MockFile) http.HandlerFunc
- func SetDump(b bool)
- func SetDumpReq(b bool)
- func SetLocalAddr(addr string)
- func SetManual(b bool)
- func SplitFile(path string, offset, length int) io.ReadCloser
- func SumMD5(buf []byte) string
- func WrongHit(t *testing.T) http.HandlerFunc
- type E2E
- type MockFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscardBody ¶
func RespCallback ¶
func RespCallback(cb func(w http.ResponseWriter, r *http.Request)) http.HandlerFunc
func RespCallbackFile ¶
func RespCallbackFile(f *MockFile, cb func(w http.ResponseWriter, r *http.Request)) http.HandlerFunc
func RespSimpleFile ¶
func RespSimpleFile(f *MockFile) http.HandlerFunc
func SetDumpReq ¶
func SetDumpReq(b bool)
func SetLocalAddr ¶
func SetLocalAddr(addr string)
Types ¶
Click to show internal directories.
Click to hide internal directories.