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

Side by Side Diff: docs/present/lightning/native_test.go

Issue 2302743002: Interface update, per-method Contexts. (Closed)
Patch Set: Lightning talk licenses. 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 unified diff | Download patch
« no previous file with comments | « docs/present/lightning/gae_test.go ('k') | filter/count/count_test.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file.
4
1 // +build native_appengine 5 // +build native_appengine
2 6
3 package demo 7 package demo
4 8
5 import "testing" 9 import "testing"
6 import "google.golang.org/appengine/aetest" 10 import "google.golang.org/appengine/aetest"
7 import . "github.com/smartystreets/goconvey/convey" 11 import . "github.com/smartystreets/goconvey/convey"
8 12
9 // START OMIT 13 // START OMIT
10 14
(...skipping 14 matching lines...) Expand all
25 _, err = datastore.PutMulti(ctx, keys, []*Model{{10, 20}, {20, 3 0}}) // HL 29 _, err = datastore.PutMulti(ctx, keys, []*Model{{10, 20}, {20, 3 0}}) // HL
26 So(err, ShouldBeNil) 30 So(err, ShouldBeNil)
27 31
28 ms := make([]*Model, 2) 32 ms := make([]*Model, 2)
29 So(datastore.GetMulti(ctx, keys, ms), ShouldBeNil) // HL 33 So(datastore.GetMulti(ctx, keys, ms), ShouldBeNil) // HL
30 So(ms, ShouldResemble, []*Model{{10, 20}, {20, 30}}) 34 So(ms, ShouldResemble, []*Model{{10, 20}, {20, 30}})
31 }) 35 })
32 } 36 }
33 37
34 // END OMIT 38 // END OMIT
OLDNEW
« no previous file with comments | « docs/present/lightning/gae_test.go ('k') | filter/count/count_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698