Loading draw/squares/palette_test.go 0 → 100644 +21 −0 Original line number Diff line number Diff line package squares import ( "image" "net/http" "net/http/httptest" "testing" ) func TestPalette(t *testing.T) { img := image.NewRGBA(image.Rect(0, 0, 10, 10)) Palette(img, colorTheme) } func TestPaletteSVG(t *testing.T) { rec := httptest.NewRecorder() PaletteSVG(rec, colorTheme, 100, 10) if rec.Code != http.StatusOK { t.Errorf("returned %v. Expected %v.", rec.Code, http.StatusOK) } } Loading
draw/squares/palette_test.go 0 → 100644 +21 −0 Original line number Diff line number Diff line package squares import ( "image" "net/http" "net/http/httptest" "testing" ) func TestPalette(t *testing.T) { img := image.NewRGBA(image.Rect(0, 0, 10, 10)) Palette(img, colorTheme) } func TestPaletteSVG(t *testing.T) { rec := httptest.NewRecorder() PaletteSVG(rec, colorTheme, 100, 10) if rec.Code != http.StatusOK { t.Errorf("returned %v. Expected %v.", rec.Code, http.StatusOK) } }