| Index: service/datastore/datastore_test.go
|
| diff --git a/service/datastore/datastore_test.go b/service/datastore/datastore_test.go
|
| index 665e3558d929a9effc665fa6b79190b11fa93c2b..c745b675786f75c1d1cb371dcc5804cc74dc1c4b 100644
|
| --- a/service/datastore/datastore_test.go
|
| +++ b/service/datastore/datastore_test.go
|
| @@ -328,10 +328,28 @@ func TestKeyForObj(t *testing.T) {
|
| So(err, ShouldBeNil)
|
| So(e, ShouldBeTrue)
|
|
|
| + bl, err := ds.ExistsMulti([]*Key{k, ds.MakeKey("hello", "other")})
|
| + So(err, ShouldBeNil)
|
| + So(bl, ShouldResemble, BoolList{true, true})
|
| + So(bl.All(), ShouldBeTrue)
|
| + So(bl.Any(), ShouldBeTrue)
|
| +
|
| + bl, err = ds.ExistsMulti([]*Key{k, ds.MakeKey("DNE", "other")})
|
| + So(err, ShouldBeNil)
|
| + So(bl, ShouldResemble, BoolList{true, false})
|
| + So(bl.All(), ShouldBeFalse)
|
| + So(bl.Any(), ShouldBeTrue)
|
| +
|
| e, err = ds.Exists(ds.MakeKey("DNE", "nope"))
|
| So(err, ShouldBeNil)
|
| So(e, ShouldBeFalse)
|
|
|
| + bl, err = ds.ExistsMulti([]*Key{ds.MakeKey("DNE", "nope"), ds.MakeKey("DNE", "other")})
|
| + So(err, ShouldBeNil)
|
| + So(bl, ShouldResemble, BoolList{false, false})
|
| + So(bl.All(), ShouldBeFalse)
|
| + So(bl.Any(), ShouldBeFalse)
|
| +
|
| _, err = ds.Exists(ds.MakeKey("Fail", "boom"))
|
| So(err, ShouldErrLike, "GetMulti fail")
|
| })
|
|
|