(t *testing.T)
| 167 | } |
| 168 | |
| 169 | func TestMarshalFaster(t *testing.T) { |
| 170 | record := newLogFFRecord() |
| 171 | _, err := ffjson.MarshalFast(record) |
| 172 | require.NoError(t, err) |
| 173 | |
| 174 | r2 := newLogRecord() |
| 175 | _, err = ffjson.MarshalFast(r2) |
| 176 | require.Error(t, err, "Record should not support MarshalFast") |
| 177 | _, err = ffjson.Marshal(r2) |
| 178 | require.NoError(t, err) |
| 179 | } |
| 180 | |
| 181 | func TestMarshalEncoder(t *testing.T) { |
| 182 | record := newLogFFRecord() |
nothing calls this directly
no test coverage detected
searching dependent graphs…