(t *testing.T, expected interface{}, xval string, ff interface{})
| 368 | } |
| 369 | |
| 370 | func testExpectedXValBare(t *testing.T, expected interface{}, xval string, ff interface{}) { |
| 371 | buf := []byte(`{"X":` + xval + `}`) |
| 372 | err := json.Unmarshal(buf, ff) |
| 373 | require.NoError(t, err, "ff[%T] failed to Unmarshal", ff) |
| 374 | |
| 375 | require.Equal(t, expected, getXValue(ff), "json.Unmarshal of %T into ff[%T]", xval, ff) |
| 376 | } |
| 377 | |
| 378 | func testExpectedXVal(t *testing.T, expected interface{}, xval string, ff interface{}) { |
| 379 | testExpectedXValBare(t, expected, `"`+xval+`"`, ff) |
no test coverage detected
searching dependent graphs…