(w, h int)
| 45 | } |
| 46 | |
| 47 | func makePNGBytes(w, h int) []byte { |
| 48 | img := image.NewRGBA(image.Rect(0, 0, w, h)) |
| 49 | var buf bytes.Buffer |
| 50 | png.Encode(&buf, img) |
| 51 | return buf.Bytes() |
| 52 | } |
| 53 | |
| 54 | func makeMultipartRequest(t *testing.T, fieldName, filename string, content []byte) *http.Request { |
| 55 | t.Helper() |
no test coverage detected