(t *testing.T)
| 206 | } |
| 207 | |
| 208 | func TestUnmarshalFaster(t *testing.T) { |
| 209 | buf := []byte(`{"id": 123213, "OriginID": 22, "meth": "GET"}`) |
| 210 | record := newLogFFRecord() |
| 211 | err := ffjson.UnmarshalFast(buf, record) |
| 212 | require.NoError(t, err) |
| 213 | |
| 214 | r2 := newLogRecord() |
| 215 | err = ffjson.UnmarshalFast(buf, r2) |
| 216 | require.Error(t, err, "Record should not support UnmarshalFast") |
| 217 | err = ffjson.Unmarshal(buf, r2) |
| 218 | require.NoError(t, err) |
| 219 | } |
| 220 | |
| 221 | func TestSimpleUnmarshal(t *testing.T) { |
| 222 | record := newLogFFRecord() |
nothing calls this directly
no test coverage detected
searching dependent graphs…