MCPcopy Create free account
hub / github.com/go-openapi/jsonpointer / TestDashToken_OffsetErrors

Function TestDashToken_OffsetErrors

dash_token_test.go:71–81  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

69}
70
71func TestDashToken_OffsetErrors(t *testing.T) {
72 t.Parallel()
73
74 doc := `{"arr":[1,2,3]}`
75 p, err := New("/arr/-")
76 require.NoError(t, err)
77
78 _, err = p.Offset(doc)
79 require.Error(t, err)
80 require.ErrorIs(t, err, ErrDashToken)
81}
82
83func TestDashToken_SetAppend(t *testing.T) {
84 t.Parallel()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
OffsetMethod · 0.80
ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…