(t *testing.T)
| 138 | } |
| 139 | |
| 140 | func TestImageEnlarge(t *testing.T) { |
| 141 | buf, err := initImage("test.png").Enlarge(500, 375) |
| 142 | if err != nil { |
| 143 | t.Errorf("Cannot process the image: %#v", err) |
| 144 | } |
| 145 | |
| 146 | err = assertSize(buf, 500, 375) |
| 147 | if err != nil { |
| 148 | t.Error(err) |
| 149 | } |
| 150 | |
| 151 | Write("testdata/test_enlarge_out.jpg", buf) |
| 152 | } |
| 153 | |
| 154 | func TestImageEnlargeAndCrop(t *testing.T) { |
| 155 | buf, err := initImage("test.png").EnlargeAndCrop(800, 480) |
nothing calls this directly
no test coverage detected