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

Function TestBindingYAML

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

Source from the content-addressed store, hash-verified

480}
481
482func TestBindingYAML(t *testing.T) {
483 testBodyBinding(t,
484 YAML, "yaml",
485 "/", "/",
486 `foo: bar`, `bar: foo`)
487}
488
489func TestBindingYAMLStringMap(t *testing.T) {
490 // YAML is a superset of JSON, so the test below is JSON (to avoid newlines)

Callers

nothing calls this directly

Calls 1

testBodyBindingFunction · 0.85

Tested by

no test coverage detected