(t *testing.T)
| 238 | } |
| 239 | |
| 240 | func TestDecodeCbor2Json(t *testing.T) { |
| 241 | for _, tc := range compositeCborTestCases { |
| 242 | buf := bytes.NewBuffer([]byte{}) |
| 243 | err := Cbor2JsonManyObjects(getReader(string(tc.Binary)), buf) |
| 244 | if buf.String() != tc.Json || err != nil { |
| 245 | t.Errorf("cbor2JsonManyObjects(0x%s)=%s, want: %s, err:%s", hex.EncodeToString(tc.Binary), buf.String(), tc.Json, err.Error()) |
| 246 | } |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | var negativeCborTestCases = []struct { |
| 251 | Binary []byte |
nothing calls this directly
no test coverage detected