(t *testing.T)
| 261 | } |
| 262 | |
| 263 | func TestDecodeNegativeCbor2Json(t *testing.T) { |
| 264 | for _, tc := range negativeCborTestCases { |
| 265 | buf := bytes.NewBuffer([]byte{}) |
| 266 | err := Cbor2JsonManyObjects(getReader(string(tc.Binary)), buf) |
| 267 | if err == nil || err.Error() != tc.errStr { |
| 268 | t.Errorf("Expected error got:%s, want:%s", err, tc.errStr) |
| 269 | } |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | func TestBinaryFmt(t *testing.T) { |
| 274 | tests := []struct { |
nothing calls this directly
no test coverage detected