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

Unified Diff: service/datastore/serialize/serialize_test.go

Issue 1576153003: Encode nil datastore keys as PTNull. (Closed) Base URL: https://github.com/luci/gae@master
Patch Set: Created 4 years, 11 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/datastore/serialize/serialize_test.go
diff --git a/service/datastore/serialize/serialize_test.go b/service/datastore/serialize/serialize_test.go
index 885bd7d2eba734f527bcdc3278838e249029f660..cb57365a61d026907a521b008915ebef6f1fa0d7 100644
--- a/service/datastore/serialize/serialize_test.go
+++ b/service/datastore/serialize/serialize_test.go
@@ -64,7 +64,11 @@ func TestPropertyMapSerialization(t *testing.T) {
{
"keys",
ds.PropertyMap{
- "DS": {mp(mkKey("appy", "ns", "Foo", 7)), mp(mkKey("other", "", "Yot", "wheeep"))},
+ "DS": {
+ mp(mkKey("appy", "ns", "Foo", 7)),
+ mp(mkKey("other", "", "Yot", "wheeep")),
+ mp((*ds.Key)(nil)),
+ },
"blobstore": {mp(blobstore.Key("sup")), mp(blobstore.Key("nerds"))},
},
},
« no previous file with comments | « service/datastore/properties_test.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698