MCPcopy Create free account
hub / github.com/imroc/req / uploadTextFile

Function uploadTextFile

request_test.go:990–996  ·  view source on GitHub ↗
(t *testing.T, setReq func(r *Request))

Source from the content-addressed store, hash-verified

988}
989
990func uploadTextFile(t *testing.T, setReq func(r *Request)) *Response {
991 r := tc().R()
992 setReq(r)
993 resp, err := r.Post("/file-text")
994 assertSuccess(t, resp, err)
995 return resp
996}
997
998type SlowReader struct {
999 io.ReadCloser

Callers 4

TestSetFileBytesFunction · 0.85
TestSetFileReaderFunction · 0.85
TestSetFileFunction · 0.85
TestSetFilesFunction · 0.85

Calls 4

tcFunction · 0.85
assertSuccessFunction · 0.85
RMethod · 0.80
PostMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…