fix: remove 10 unused test functions flagged by staticcheck U1000

This commit is contained in:
2026-07-10 12:01:02 +01:00
parent eed8814021
commit cf0cd8de15
8 changed files with 2 additions and 105 deletions
-15
View File
@@ -898,21 +898,6 @@ func jpegBytes(t *testing.T) []byte {
return buf.Bytes()
}
func webpBytes(t *testing.T) []byte {
t.Helper()
img := image.NewNRGBA(image.Rect(0, 0, 100, 100))
for y := 0; y < 100; y++ {
for x := 0; x < 100; x++ {
img.Set(x, y, color.RGBA{R: 100, G: 150, B: 200, A: 255})
}
}
var buf bytes.Buffer
if err := imaging.Encode(&buf, img, imaging.PNG); err != nil {
t.Fatalf("failed to encode test image: %v", err)
}
return buf.Bytes()
}
func multipartUploadBody(t *testing.T, fields map[string][]byte, tags string) (*bytes.Buffer, string) {
t.Helper()
var buf bytes.Buffer