MCPcopy
hub / github.com/gin-gonic/gin / TestBindingProtoBuf

Function TestBindingProtoBuf

binding/binding_test.go:714–724  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

712}
713
714func TestBindingProtoBuf(t *testing.T) {
715 test := &protoexample.Test{
716 Label: proto.String("yes"),
717 }
718 data, _ := proto.Marshal(test)
719
720 testProtoBodyBinding(t,
721 ProtoBuf, "protobuf",
722 "/", "/",
723 string(data), string(data[1:]))
724}
725
726func TestBindingProtoBufFail(t *testing.T) {
727 test := &protoexample.Test{

Callers

nothing calls this directly

Calls 3

testProtoBodyBindingFunction · 0.85
StringMethod · 0.65
MarshalMethod · 0.65

Tested by

no test coverage detected