(t *testing.T)
| 11 | ) |
| 12 | |
| 13 | func TestDecodeInteger(t *testing.T) { |
| 14 | for _, tc := range internal.IntegerTestCases { |
| 15 | gotv := decodeInteger(getReader(tc.Binary)) |
| 16 | if gotv != int64(tc.Val) { |
| 17 | t.Errorf("decodeInteger(0x%s)=0x%d, want: 0x%d", |
| 18 | hex.EncodeToString([]byte(tc.Binary)), gotv, tc.Val) |
| 19 | } |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | func TestDecodeString(t *testing.T) { |
| 24 | for _, tt := range encodeStringTests { |
nothing calls this directly
no test coverage detected