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

Unified Diff: go/src/infra/gae/libs/meta/eg_test.go

Issue 1227183003: Change RawDatastore to do less reflection. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@move_dummy
Patch Set: fix No/ShouldIndex 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 | « go/src/infra/gae/libs/meta/eg.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/gae/libs/meta/eg_test.go
diff --git a/go/src/infra/gae/libs/meta/eg_test.go b/go/src/infra/gae/libs/meta/eg_test.go
index 11e74108e9e55f9d6db21abd9a81f22920587fb9..472bfcdcca509408962a4e5c79f7f0404a9a11d1 100644
--- a/go/src/infra/gae/libs/meta/eg_test.go
+++ b/go/src/infra/gae/libs/meta/eg_test.go
@@ -22,13 +22,9 @@ func TestGetEntityGroupVersion(t *testing.T) {
c := memory.Use(context.Background())
rds := gae.GetRDS(c)
- type A struct {
- ID int64 `datastore:"-" goon:"id"`
- Val int
- }
-
- a := &A{Val: 10}
- aKey, err := rds.Put(rds.NewKey("A", "", 0, nil), a)
+ aKey, err := rds.Put(rds.NewKey("A", "", 0, nil), gae.DSPropertyMap{
+ "Val": {gae.MkDSProperty(10)},
+ })
So(err, ShouldBeNil)
v, err := GetEntityGroupVersion(c, aKey)
« no previous file with comments | « go/src/infra/gae/libs/meta/eg.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698