(t *testing.T)
| 68 | func TestRenderImagePlaceholderZero(t *testing.T) { |
| 69 | result := renderImagePlaceholder(1, 0, 0) |
| 70 | if result != "" { |
| 71 | t.Errorf("zero dimensions should return empty string, got %q", result) |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | func TestImageDimensionsStaysWithinTheImagesOwnPixels(t *testing.T) { |
| 76 | // A logo the size of the one Sentry puts at the top of its notifications. |
| 77 | cols, rows := imageDimensions(pngImage(t, 234, 64), 100) |
| 78 | if cols != 24 || rows != 3 { |
| 79 | t.Errorf("dimensions = (%d, %d), want (24, 3)", cols, rows) |
nothing calls this directly
no test coverage detected