(t *testing.T)
| 112 | } |
| 113 | |
| 114 | func TestErrorCtxAsMapUnmarshal(t *testing.T) { |
| 115 | bts := marshalErrorCtx(fillErrorCtxAsMap()) |
| 116 | cnt := countStrings(bts) |
| 117 | |
| 118 | var as []string |
| 119 | for i := 0; i < cnt; i++ { |
| 120 | dodgeBts := dodgifyMsgpString(bts, i) |
| 121 | |
| 122 | var ec ErrorCtxAsMap |
| 123 | _, err := (&ec).UnmarshalMsg(dodgeBts) |
| 124 | as = append(as, err.Error()) |
| 125 | } |
| 126 | |
| 127 | ok, a, b := diffstrs(as, expectedAsMap()) |
| 128 | if !ok { |
| 129 | t.Fatal(a, b) |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | func TestErrorCtxAsMapDecode(t *testing.T) { |
| 134 | bts := marshalErrorCtx(fillErrorCtxAsMap()) |
nothing calls this directly
no test coverage detected
searching dependent graphs…