| Index: service/datastore/serialize/serialize_test.go
|
| diff --git a/service/datastore/serialize/serialize_test.go b/service/datastore/serialize/serialize_test.go
|
| index 0006bce4de096a69430f526fcab1fe43d64e1960..63f44d01b6b3b0b094cae2d2d1dce6ccfee405ae 100644
|
| --- a/service/datastore/serialize/serialize_test.go
|
| +++ b/service/datastore/serialize/serialize_test.go
|
| @@ -174,6 +174,14 @@ func TestSerializationReadMisc(t *testing.T) {
|
| So(string(ToBytes(tp.Value())), ShouldEqual, string(ToBytes(tp)[1:]))
|
| })
|
|
|
| + Convey("Zero time", func() {
|
| + buf := mkBuf(nil)
|
| + So(WriteTime(buf, time.Time{}), ShouldBeNil)
|
| + t, err := ReadTime(mkBuf(buf.Bytes()))
|
| + So(err, ShouldBeNil)
|
| + So(t.IsZero(), ShouldBeTrue)
|
| + })
|
| +
|
| Convey("Bad ToBytes", func() {
|
| So(func() { ToBytes(100.7) }, ShouldPanic)
|
| So(func() { ToBytesWithContext(100.7) }, ShouldPanic)
|
|
|