(t *testing.T)
| 131 | } |
| 132 | |
| 133 | func TestErrorCtxAsMapDecode(t *testing.T) { |
| 134 | bts := marshalErrorCtx(fillErrorCtxAsMap()) |
| 135 | cnt := countStrings(bts) |
| 136 | |
| 137 | var as []string |
| 138 | for i := 0; i < cnt; i++ { |
| 139 | dodgeBts := dodgifyMsgpString(bts, i) |
| 140 | |
| 141 | r := msgp.NewReader(bytes.NewReader(dodgeBts)) |
| 142 | var ec ErrorCtxAsMap |
| 143 | err := (&ec).DecodeMsg(r) |
| 144 | as = append(as, err.Error()) |
| 145 | } |
| 146 | |
| 147 | ok, a, b := diffstrs(as, expectedAsMap()) |
| 148 | if !ok { |
| 149 | t.Fatal(a, b) |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | func TestErrorCtxAsTupleUnmarshal(t *testing.T) { |
| 154 | bts := marshalErrorCtx(fillErrorCtxAsTuple()) |
nothing calls this directly
no test coverage detected
searching dependent graphs…