(t *testing.T, expected string, enc *jsonEncoder)
| 509 | } |
| 510 | |
| 511 | func assertJSON(t *testing.T, expected string, enc *jsonEncoder) { |
| 512 | assert.Equal(t, expected, enc.buf.String(), "Encoded JSON didn't match expectations.") |
| 513 | } |
| 514 | |
| 515 | func assertOutput(t testing.TB, cfg EncoderConfig, expected string, f func(Encoder)) { |
| 516 | enc := NewJSONEncoder(cfg).(*jsonEncoder) |
no test coverage detected