(t *testing.T)
| 11 | ) |
| 12 | |
| 13 | func TestIssue116(t *testing.T) { |
| 14 | data := AppendInt64(nil, math.MinInt64) |
| 15 | i, _, err := ReadInt64Bytes(data) |
| 16 | if err != nil { |
| 17 | t.Fatal(err) |
| 18 | } |
| 19 | if i != math.MinInt64 { |
| 20 | t.Errorf("put %d in and got %d out", int64(math.MinInt64), i) |
| 21 | } |
| 22 | |
| 23 | var buf bytes.Buffer |
| 24 | |
| 25 | w := NewWriter(&buf) |
| 26 | w.WriteInt64(math.MinInt64) |
| 27 | w.Flush() |
| 28 | i, err = NewReader(&buf).ReadInt64() |
| 29 | if err != nil { |
| 30 | t.Fatal(err) |
| 31 | } |
| 32 | if i != math.MinInt64 { |
| 33 | t.Errorf("put %d in and got %d out", int64(math.MinInt64), i) |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | func TestAppendMapHeader(t *testing.T) { |
| 38 | szs := []uint32{0, 1, uint32(tint8), uint32(tint16), tuint32} |
nothing calls this directly
no test coverage detected
searching dependent graphs…