MCPcopy Create free account
hub / github.com/pquerna/ffjson / testExpectedXVal

Function testExpectedXVal

tests/ff_test.go:378–380  ·  view source on GitHub ↗
(t *testing.T, expected interface{}, xval string, ff interface{})

Source from the content-addressed store, hash-verified

376}
377
378func testExpectedXVal(t *testing.T, expected interface{}, xval string, ff interface{}) {
379 testExpectedXValBare(t, expected, `"`+xval+`"`, ff)
380}
381
382func testExpectedError(t *testing.T, expected error, xval string, ff json.Unmarshaler) {
383 buf := []byte(`{"X":` + xval + `}`)

Callers 9

TestStringOneByteUTF8Function · 0.85
TestStringUtf8EscapeFunction · 0.85
TestStringTwoByteUTF8Function · 0.85
TestStringThreeByteUTF8Function · 0.85
TestStringEsccapesFunction · 0.85
TestStringSomeUTF8Function · 0.85
TestBytesInStringFunction · 0.85
TestString4ByteSurrogateFunction · 0.85

Calls 1

testExpectedXValBareFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…