(t *testing.T)
| 179 | } |
| 180 | |
| 181 | func TestMarshalEncoder(t *testing.T) { |
| 182 | record := newLogFFRecord() |
| 183 | out := bytes.Buffer{} |
| 184 | enc := ffjson.NewEncoder(&out) |
| 185 | err := enc.Encode(record) |
| 186 | require.NoError(t, err) |
| 187 | require.NotEqual(t, 0, out.Len(), "encoded buffer size should not be 0") |
| 188 | |
| 189 | out.Reset() |
| 190 | err = enc.EncodeFast(record) |
| 191 | require.NoError(t, err) |
| 192 | require.NotEqual(t, 0, out.Len(), "encoded buffer size should not be 0") |
| 193 | } |
| 194 | |
| 195 | func TestMarshalEncoderError(t *testing.T) { |
| 196 | out := NopWriter{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…