(t *testing.T)
| 569 | } |
| 570 | |
| 571 | func 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 | |
| 580 | func TestForceStringTaggedEscape(t *testing.T) { |
| 581 | testSameMarshal(t, &TstringTagged{X: `"`}, &XstringTagged{X: `"`}) |
nothing calls this directly
no test coverage detected
searching dependent graphs…