filled test

This commit is contained in:
salamer 2018-08-18 18:00:46 +08:00
parent 8ba804b5f4
commit 75aa0c0d5f

View File

@ -289,6 +289,13 @@ func TestRenderProtoBuf(t *testing.T) {
assert.Equal(t, "application/x-protobuf", w.Header().Get("Content-Type"))
}
func TestRenderProtoBufFail(t *testing.T) {
w := httptest.NewRecorder()
data := &testdata.Test{}
err := (ProtoBuf{data}).Render(w)
assert.Error(t, err)
}
func TestRenderXML(t *testing.T) {
w := httptest.NewRecorder()
data := xmlmap{