(t *testing.T)
| 124 | } |
| 125 | |
| 126 | func TestImageExtractZero(t *testing.T) { |
| 127 | buf, err := initImage("test.jpg").Extract(0, 0, 300, 200) |
| 128 | if err != nil { |
| 129 | t.Errorf("Cannot process the image: %s", err) |
| 130 | } |
| 131 | |
| 132 | err = assertSize(buf, 300, 200) |
| 133 | if err != nil { |
| 134 | t.Error(err) |
| 135 | } |
| 136 | |
| 137 | Write("testdata/test_extract_zero_out.jpg", buf) |
| 138 | } |
| 139 | |
| 140 | func TestImageEnlarge(t *testing.T) { |
| 141 | buf, err := initImage("test.png").Enlarge(500, 375) |
nothing calls this directly
no test coverage detected