(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func TestImageResize(t *testing.T) { |
| 10 | buf, err := initImage("test.jpg").Resize(300, 240) |
| 11 | if err != nil { |
| 12 | t.Errorf("Cannot process the image: %#v", err) |
| 13 | } |
| 14 | |
| 15 | err = assertSize(buf, 300, 240) |
| 16 | if err != nil { |
| 17 | t.Error(err) |
| 18 | } |
| 19 | |
| 20 | Write("testdata/test_resize_out.jpg", buf) |
| 21 | } |
| 22 | |
| 23 | func TestImageGifResize(t *testing.T) { |
| 24 | if VipsMajorVersion >= 8 && VipsMinorVersion >= 12 { |
nothing calls this directly
no test coverage detected