Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: impl/prod/everything_test.go

Issue 2007123002: datastore: Update AllocateIDs to take keys. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Rebase, comments. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « impl/memory/datastore_test.go ('k') | impl/prod/raw_datastore.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/prod/everything_test.go
diff --git a/impl/prod/everything_test.go b/impl/prod/everything_test.go
index dcb889c25de6bf45e473bce717d52d608f144f4c..a769557decce690cb551d713fe46ca36ad5ff536 100644
--- a/impl/prod/everything_test.go
+++ b/impl/prod/everything_test.go
@@ -68,11 +68,18 @@ func TestBasicDatastore(t *testing.T) {
})
Convey("Can probe/change Namespace", func() {
- So(inf.GetNamespace(), ShouldEqual, "")
+ ns, has := inf.GetNamespace()
+ So(ns, ShouldEqual, "")
+ So(has, ShouldBeFalse)
+
ctx, err = inf.Namespace("wat")
So(err, ShouldBeNil)
inf = info.Get(ctx)
- So(inf.GetNamespace(), ShouldEqual, "wat")
+
+ ns, has = inf.GetNamespace()
+ So(ns, ShouldEqual, "wat")
+ So(has, ShouldBeTrue)
+
ds = datastore.Get(ctx)
So(ds.MakeKey("Hello", "world").Namespace(), ShouldEqual, "wat")
})
« no previous file with comments | « impl/memory/datastore_test.go ('k') | impl/prod/raw_datastore.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698