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

Function TestBindingJSON

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

Source from the content-addressed store, hash-verified

186}
187
188func TestBindingJSON(t *testing.T) {
189 testBodyBinding(t,
190 JSON, "json",
191 "/", "/",
192 `{"foo": "bar"}`, `{"bar": "foo"}`)
193}
194
195func TestBindingJSONSlice(t *testing.T) {
196 EnableDecoderDisallowUnknownFields = true

Callers

nothing calls this directly

Calls 1

testBodyBindingFunction · 0.85

Tested by

no test coverage detected