(t *testing.T)
| 978 | } |
| 979 | |
| 980 | func TestSetFiles(t *testing.T) { |
| 981 | filename := "sample-file.txt" |
| 982 | resp := uploadTextFile(t, func(r *Request) { |
| 983 | r.SetFiles(map[string]string{ |
| 984 | "file": tests.GetTestFilePath(filename), |
| 985 | }) |
| 986 | }) |
| 987 | tests.AssertEqual(t, getTestFileContent(t, filename), resp.Bytes()) |
| 988 | } |
| 989 | |
| 990 | func uploadTextFile(t *testing.T, setReq func(r *Request)) *Response { |
| 991 | r := tc().R() |
nothing calls this directly
no test coverage detected
searching dependent graphs…