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

Unified Diff: service/datastore/pls_test.go

Issue 1616033004: Add a test to ensure []byte => BlobKey PLS works. (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/datastore/pls_test.go
diff --git a/service/datastore/pls_test.go b/service/datastore/pls_test.go
index 52a51416886f63553c38e3c9d21ff81071001bb6..db44b6e67bb6823114ee91b6b51ff272ebc77a3e 100644
--- a/service/datastore/pls_test.go
+++ b/service/datastore/pls_test.go
@@ -1313,6 +1313,15 @@ var testCases = []testCase{
},
},
{
+ desc: "exotic type projection",
+ src: PropertyMap{
+ "BS": {mp([]byte("I'mABlobKey"))},
+ },
+ want: &ExoticTypes{
+ BS: "I'mABlobKey",
+ },
+ },
+ {
desc: "underspecified types",
src: &Underspecified{},
plsErr: "non-concrete interface",
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698