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

Function TestBindingProtoBufFail

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

Source from the content-addressed store, hash-verified

724}
725
726func TestBindingProtoBufFail(t *testing.T) {
727 test := &protoexample.Test{
728 Label: proto.String("yes"),
729 }
730 data, _ := proto.Marshal(test)
731
732 testProtoBodyBindingFail(t,
733 ProtoBuf, "protobuf",
734 "/", "/",
735 string(data), string(data[1:]))
736}
737
738func TestBindingBSON(t *testing.T) {
739 var obj FooStruct

Callers

nothing calls this directly

Calls 3

testProtoBodyBindingFailFunction · 0.85
StringMethod · 0.65
MarshalMethod · 0.65

Tested by

no test coverage detected