add RenderProtoBuf test

This commit is contained in:
salamer 2018-08-12 15:50:23 +08:00
parent 73b20fdb2a
commit bbdceff27e

View File

@ -956,7 +956,7 @@ func TestContextRenderYAML(t *testing.T) {
assert.Equal(t, "application/x-yaml; charset=utf-8", w.HeaderMap.Get("Content-Type"))
}
// TestContextRenderProtoBuf tests that the response is serialized as YAML
// TestContextRenderProtoBuf tests that the response is serialized as ProtoBuf
// and Content-Type is set to application/x-protobuf
// and we just use the example protobuf to check if the response is correct
func TestContextRenderProtoBuf(t *testing.T) {