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

Function expectedAsMap

_generated/errorwrap_test.go:271–338  ·  view source on GitHub ↗

there are a lot of extra errors in here at the struct level because we are not discriminating between dodgy struct field map key strings and values. dodgy struct field map keys have no field context available when they are read.

()

Source from the content-addressed store, hash-verified

269// values. dodgy struct field map keys have no field context available when
270// they are read.
271func expectedAsMap() []string {
272 var out []string
273 for _, s := range []string{
274 ``,
275 `Val`,
276 ``,
277 `Child`,
278 `Child/Val`,
279 ``,
280 `Children/0`,
281 `Children/0/Val`,
282 `Children/1`,
283 `Children/1/Val`,
284 `ComplexChild`,
285 `ComplexChild/Val1`,
286 `ComplexChild`,
287 `ComplexChild/Val2`,
288 `ComplexChild`,
289 `ComplexChild/Val3`,
290 `ComplexChild`,
291 `ComplexChild/Val4`,
292 `ComplexChild`,
293 `ComplexChild/Val5`,
294 `Map`,
295 `Map/foo`,
296 `Map`,
297 `Map/baz`,
298 ``,
299 `Nest`,
300 `Nest/Val`,
301 `Nest`,
302 `Nest/Child`,
303 `Nest/Child/Val`,
304 `Nest`,
305 `Nest/Children/0`,
306 `Nest/Children/0/Val`,
307 `Nest/Children/1`,
308 `Nest/Children/1/Val`,
309 `Nest`,
310 `Nest/Map`,
311 `Nest/Map/foo`,
312 `Nest/Map`,
313 `Nest/Map/baz`,
314 `Nest`,
315 `Nest/Nest`,
316 `Nest/Nest/Val`,
317 `Nest/Nest`,
318 `Nest/Nest/Child`,
319 `Nest/Nest/Child/Val`,
320 `Nest/Nest`,
321 `Nest/Nest/Children/0`,
322 `Nest/Nest/Children/0/Val`,
323 `Nest/Nest/Children/1`,
324 `Nest/Nest/Children/1/Val`,
325 `Nest/Nest`,
326 `Nest/Nest/Map`,
327 `Nest/Nest/Map/baz`,
328 `Nest/Nest/Map`,

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…