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

Unified Diff: service/rawdatastore/datastore_key_test.go

Issue 1253263002: Make rawdatastore API safer for writing filters. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: fix comments Created 5 years, 5 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/rawdatastore/datastore_key.go ('k') | service/rawdatastore/interface.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/rawdatastore/datastore_key_test.go
diff --git a/service/rawdatastore/datastore_key_test.go b/service/rawdatastore/datastore_key_test.go
index 8bb1fc16f7bff704ffebbe3c9c7fae10d208cf42..4d9586f69548741b2ba526ce25fe625fed7ab5da 100644
--- a/service/rawdatastore/datastore_key_test.go
+++ b/service/rawdatastore/datastore_key_test.go
@@ -142,8 +142,7 @@ func TestBadKeyEncode(t *testing.T) {
})
Convey("invalid", func() {
- So(KeyValid(mkKey("aid", "ns", "hat", "face", "__kind__", 1), "ns", true), ShouldBeTrue)
- So(KeyValid(mkKey("aid", "ns", "hat", "face", "kind", 1), "wat", false), ShouldBeFalse)
+ So(KeyValid(mkKey("aid", "ns", "hat", "face", "__kind__", 1), true, "aid", "ns"), ShouldBeTrue)
bads := []Key{
nil,
@@ -160,7 +159,7 @@ func TestBadKeyEncode(t *testing.T) {
s = k.String()
}
Convey(s, func() {
- So(KeyValid(k, "ns", false), ShouldBeFalse)
+ So(KeyValid(k, false, "aid", "ns"), ShouldBeFalse)
})
}
})
« no previous file with comments | « service/rawdatastore/datastore_key.go ('k') | service/rawdatastore/interface.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698