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

Unified Diff: service/datastore/datastore_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/context_test.go ('k') | service/datastore/key.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/datastore/datastore_test.go
diff --git a/service/datastore/datastore_test.go b/service/datastore/datastore_test.go
index 789a1e022d4b7d9f895e4c371b3ff47aa29a893b..bb07fbe2b9dae3c5b3ec9efedfb0498041c1f68f 100644
--- a/service/datastore/datastore_test.go
+++ b/service/datastore/datastore_test.go
@@ -396,7 +396,7 @@ func TestPopulateKey(t *testing.T) {
t.Parallel()
Convey("Test PopulateKey", t, func() {
- k := KeyContext{"app", "namespace"}.NewKey("kind", "", 1337, nil)
+ k := MkKeyContext("app", "namespace").NewKey("kind", "", 1337, nil)
Convey("Can set the key of a common struct.", func() {
var cs CommonStruct
« no previous file with comments | « service/datastore/context_test.go ('k') | service/datastore/key.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698