Commit 1a0d9158 authored by santiaago's avatar santiaago
Browse files

test imageWithTemplate

parent 849a4d22
Loading
Loading
Loading
Loading

write/write_test.go

0 → 100644
+26 −0
Original line number Diff line number Diff line
package write

import (
	"image"
	"net/http"
	"net/http/httptest"
	"testing"
)

func TestImageWithTemplate(t *testing.T) {

	recorder := httptest.NewRecorder()
	var img image.Image = image.NewRGBA(image.Rect(0, 0, 0, 0))

	ImageWithTemplate(recorder, &img)
	if recorder.Code != http.StatusOK {
		t.Errorf("returned %v. Expected %v.", recorder.Code, http.StatusOK)
	}
}

func TestImageJPEG(t *testing.T) {
}

func TestImageSVG(t *testing.T) {

}