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

Unified Diff: filter/count/count_test.go

Issue 2342063003: Differentiate between single- and multi- props. (Closed)
Patch Set: Slice is now always a clone. This is marginally worse performance, but a much safer UI. 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 | « no previous file | filter/dscache/dscache_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filter/count/count_test.go
diff --git a/filter/count/count_test.go b/filter/count/count_test.go
index 2efaf5ac502ec781444910dfa8eb81baa7b26723..1fe7c9b2eae489bb956c9c75c4f9ef9a7f2ddaf0 100644
--- a/filter/count/count_test.go
+++ b/filter/count/count_test.go
@@ -55,8 +55,8 @@ func TestCount(t *testing.T) {
ds := datastore.Get(c)
vals := []datastore.PropertyMap{{
- "Val": {datastore.MkProperty(100)},
- "$key": {datastore.MkPropertyNI(ds.NewKey("Kind", "", 1, nil))},
+ "Val": datastore.MkProperty(100),
+ "$key": datastore.MkPropertyNI(ds.NewKey("Kind", "", 1, nil)),
}}
Convey("Calling a ds function should reflect in counter", func() {
@@ -208,8 +208,8 @@ func ExampleFilterRDS() {
someCalledFunc := func(c context.Context) {
ds := datastore.Get(c)
vals := []datastore.PropertyMap{{
- "FieldName": {datastore.MkProperty(100)},
- "$key": {datastore.MkProperty(ds.NewKey("Kind", "", 1, nil))}},
+ "FieldName": datastore.MkProperty(100),
+ "$key": datastore.MkProperty(ds.NewKey("Kind", "", 1, nil))},
}
if err := ds.PutMulti(vals); err != nil {
panic(err)
« no previous file with comments | « no previous file | filter/dscache/dscache_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698