TestInt64 tests the read and write of the int64 type.
(t *testing.T)
| 166 | |
| 167 | // TestInt64 tests the read and write of the int64 type. |
| 168 | func TestInt64(t *testing.T) { |
| 169 | b := NewBuffer() |
| 170 | err := b.WriteInt64(math.MinInt64, byte(10)) |
| 171 | if err != nil { |
| 172 | t.Error(err) |
| 173 | } |
| 174 | var data int64 |
| 175 | err = r(b).ReadInt64(&data, byte(10), true) |
| 176 | if err != nil { |
| 177 | t.Error(err) |
| 178 | } |
| 179 | if data != math.MinInt64 { |
| 180 | t.Error("no eq.") |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | // TestSkipString tests skip the string. |
| 185 | func TestSkipString(t *testing.T) { |
nothing calls this directly
no test coverage detected