MCPcopy Index your code
hub / github.com/pquerna/ffjson / TestForceStringTagged

Function TestForceStringTagged

tests/ff_test.go:571–578  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

569}
570
571func TestForceStringTagged(t *testing.T) {
572 // testSameMarshal is used instead of testType because
573 // the string tag is a one way effect, Unmarshaling doesn't
574 // work because the receiving type must be a string.
575 testSameMarshal(t, &TstringTagged{}, &XstringTagged{})
576 testSameMarshal(t, &TintTagged{}, &XintTagged{})
577 testSameMarshal(t, &TboolTagged{}, &XboolTagged{})
578}
579
580func TestForceStringTaggedEscape(t *testing.T) {
581 testSameMarshal(t, &TstringTagged{X: `"`}, &XstringTagged{X: `"`})

Callers

nothing calls this directly

Calls 1

testSameMarshalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…