Skip to content

Commit

Permalink
filled test
Browse files Browse the repository at this point in the history
  • Loading branch information
salamer committed Aug 18, 2018
1 parent 8ba804b commit 75aa0c0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions render/render_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 75aa0c0

Please sign in to comment.