OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 // +build appengine |
| 6 |
5 package helloworld | 7 package helloworld |
6 | 8 |
7 import ( | 9 import ( |
8 "testing" | 10 "testing" |
9 | 11 |
10 "appengine/aetest" | 12 "appengine/aetest" |
11 "appengine/memcache" | 13 "appengine/memcache" |
12 "appengine/user" | 14 "appengine/user" |
13 | 15 |
14 . "github.com/smartystreets/goconvey/convey" | 16 . "github.com/smartystreets/goconvey/convey" |
(...skipping 19 matching lines...) Expand all Loading... |
34 Key: "some-key", | 36 Key: "some-key", |
35 Value: []byte("some-value"), | 37 Value: []byte("some-value"), |
36 } | 38 } |
37 err = memcache.Set(c, it) | 39 err = memcache.Set(c, it) |
38 So(err, ShouldBeNil) | 40 So(err, ShouldBeNil) |
39 it, err = memcache.Get(c, "some-key") | 41 it, err = memcache.Get(c, "some-key") |
40 So(err, ShouldBeNil) | 42 So(err, ShouldBeNil) |
41 So(it.Value, ShouldResemble, []byte("some-value")) | 43 So(it.Value, ShouldResemble, []byte("some-value")) |
42 }) | 44 }) |
43 } | 45 } |
OLD | NEW |