OLD | NEW |
| 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 Loading... |
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 |
OLD | NEW |