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

Unified Diff: service/datastore/properties_test.go

Issue 2302743002: Interface update, per-method Contexts. (Closed)
Patch Set: Lightning talk licenses. Created 4 years, 3 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 | « service/datastore/multiarg.go ('k') | service/datastore/query_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/datastore/properties_test.go
diff --git a/service/datastore/properties_test.go b/service/datastore/properties_test.go
index 2d2361d5d0008b63a502c986b9afc896dde91f6f..ea093db06047e4cd0d67b2fe6272fac26f6906cd 100644
--- a/service/datastore/properties_test.go
+++ b/service/datastore/properties_test.go
@@ -91,7 +91,7 @@ func TestProperties(t *testing.T) {
So(pv.Type().String(), ShouldEqual, "PTBlobKey")
})
Convey("datastore Key is distinguished", func() {
- k := MakeKey("appid", "ns", "kind", "1")
+ k := KeyContext{"appid", "ns"}.MakeKey("kind", "1")
pv := MkProperty(k)
So(pv.Value(), ShouldHaveSameTypeAs, k)
So(pv.Value().(*Key).Equal(k), ShouldBeTrue)
« no previous file with comments | « service/datastore/multiarg.go ('k') | service/datastore/query_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698