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

Unified Diff: service/datastore/query_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/properties_test.go ('k') | service/datastore/raw_interface.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/datastore/query_test.go
diff --git a/service/datastore/query_test.go b/service/datastore/query_test.go
index 9e16edc97d559b442d2894bdc0a9e853bb753680..366ab8b63d901e68c6e0b3fd7e901a97863701db 100644
--- a/service/datastore/query_test.go
+++ b/service/datastore/query_test.go
@@ -82,7 +82,7 @@ func nq(kinds ...string) *Query {
}
func mkKey(elems ...interface{}) *Key {
- return MakeKey("s~aid", "ns", elems...)
+ return KeyContext{"s~aid", "ns"}.MakeKey(elems...)
}
var queryTests = []queryTest{
@@ -321,7 +321,7 @@ func TestQueries(t *testing.T) {
Convey(tc.name, func() {
fq, err := tc.q.Finalize()
if err == nil {
- err = fq.Valid("s~aid", "ns")
+ err = fq.Valid(KeyContext{"s~aid", "ns"})
}
So(err, ShouldErrLike, tc.err)
« no previous file with comments | « service/datastore/properties_test.go ('k') | service/datastore/raw_interface.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698