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

Unified Diff: service/datastore/properties_test.go

Issue 2353063004: Add "MkKeyContext" KeyContext generation function. (Closed)
Patch Set: 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/key_test.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 ea093db06047e4cd0d67b2fe6272fac26f6906cd..8e245e5b257030484744768609bac674c71fc399 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 := KeyContext{"appid", "ns"}.MakeKey("kind", "1")
+ k := MkKeyContext("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/key_test.go ('k') | service/datastore/query_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698