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

Unified Diff: impl/memory/datastore_query_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 | « impl/memory/datastore_query_execution_test.go ('k') | impl/memory/datastore_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/memory/datastore_query_test.go
diff --git a/impl/memory/datastore_query_test.go b/impl/memory/datastore_query_test.go
index b9543b97ee158c0a802154737eb1eaa94a984232..f5d7d3d943147114483700c8cb7cf26760905616 100644
--- a/impl/memory/datastore_query_test.go
+++ b/impl/memory/datastore_query_test.go
@@ -118,7 +118,7 @@ var queryTests = []queryTest{
End(curs("Foo", 20, "__key__", key("Something", 20)))),
nil,
&reducedQuery{
- dstore.KeyContext{"dev~app", "ns"},
+ dstore.MkKeyContext("dev~app", "ns"),
"Foo", map[string]stringset.Set{}, []dstore.IndexColumn{
{Property: "Foo"},
{Property: "__key__"},
@@ -140,7 +140,7 @@ func TestQueries(t *testing.T) {
t.Parallel()
Convey("queries have tons of condition checking", t, func() {
- kc := dstore.KeyContext{"dev~app", "ns"}
+ kc := dstore.MkKeyContext("dev~app", "ns")
Convey("non-ancestor queries in a transaction", func() {
fq, err := nq().Finalize()
« no previous file with comments | « impl/memory/datastore_query_execution_test.go ('k') | impl/memory/datastore_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698