Skip to content

Commit 429280f

Browse files
authored
test: regen fixtures (#850)
1 parent 27102b8 commit 429280f

13 files changed

+16
-22
lines changed

tests/acceptance/fixtures.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"path/filepath"
1111
"testing"
1212

13-
"github.com/stretchr/testify/assert"
1413
"github.com/stretchr/testify/require"
1514
)
1615

@@ -75,12 +74,3 @@ func ReadRGBA(tb testing.TB, b []byte) *image.RGBA {
7574
require.True(tb, ok, "image body is not in RGBA format")
7675
return rgba
7776
}
78-
79-
func AssertRGBASize(tb testing.TB, img *image.RGBA, width, height int) bool {
80-
tb.Helper()
81-
82-
// We want both errors to be reported, so we use variables
83-
a := assert.Equal(tb, width, img.Bounds().Max.X, "image has wrong width")
84-
b := assert.Equal(tb, height, img.Bounds().Max.Y, "image has wrong height")
85-
return a && b
86-
}
3.23 KB
Loading
3.02 KB
Loading
-4.46 KB
Binary file not shown.
-4.47 KB
Binary file not shown.
-4.47 KB
Binary file not shown.
1.54 KB
Loading
-114 Bytes
Binary file not shown.
1.54 KB
Loading
-114 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)