MCPcopy Index your code
hub / github.com/dunglas/httpsfv / TestMarshalError

Function TestMarshalError

encode_test.go:30–36  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28}
29
30func TestMarshalError(t *testing.T) {
31 t.Parallel()
32
33 if _, err := Marshal(NewItem(Token("à"))); err == nil {
34 t.Errorf("marshal: error expected")
35 }
36}

Callers

nothing calls this directly

Calls 3

MarshalFunction · 0.85
NewItemFunction · 0.85
TokenTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…