(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestConvertFromEncodeError(t *testing.T) { |
| 11 | e := ConvertErr{ConvertErrVal(fromFailStr)} |
| 12 | var buf bytes.Buffer |
| 13 | w := msgp.NewWriter(&buf) |
| 14 | err := e.EncodeMsg(w) |
| 15 | if msgp.Cause(err) != errConvertFrom { |
| 16 | t.Fatalf("expected conversion error, found '%v'", err.Error()) |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | func TestConvertToEncodeError(t *testing.T) { |
| 21 | var in, out ConvertErr |
nothing calls this directly
no test coverage detected
searching dependent graphs…