MCPcopy Index your code
hub / github.com/tinylib/msgp / fillErrorCtxAsMap

Function fillErrorCtxAsMap

_generated/errorwrap_test.go:11–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func fillErrorCtxAsMap() *ErrorCtxAsMap {
12 v := &ErrorCtxAsMap{}
13 v.Val = "foo"
14 v.ComplexChild = &ErrorCtxMapChildNotInline{Val1: "a", Val2: "b", Val3: "c", Val4: "d", Val5: "e"}
15 v.Child = &ErrorCtxMapChild{Val: "foo"}
16 v.Children = []*ErrorCtxMapChild{{Val: "foo"}, {Val: "bar"}}
17 v.Map = map[string]string{"foo": "bar", "baz": "qux"}
18 v.Nest.Val = "foo"
19 v.Nest.Child = &ErrorCtxMapChild{Val: "foo"}
20 v.Nest.Children = []*ErrorCtxMapChild{{Val: "foo"}, {Val: "bar"}}
21 v.Nest.Map = map[string]string{"foo": "bar", "baz": "qux"}
22 v.Nest.Nest.Val = "foo"
23 v.Nest.Nest.Child = &ErrorCtxMapChild{Val: "foo"}
24 v.Nest.Nest.Children = []*ErrorCtxMapChild{{Val: "foo"}, {Val: "bar"}}
25 v.Nest.Nest.Map = map[string]string{"foo": "bar", "baz": "qux"}
26 return v
27}
28
29func fillErrorCtxAsTuple() *ErrorCtxAsTuple {
30 v := &ErrorCtxAsTuple{}

Callers 2

TestErrorCtxAsMapDecodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…