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

Side by Side Diff: go/src/infra/gae/apps/helloworld/app_test.go

Issue 1042633002: Add support for -tags to enable appengine testing. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | go/src/infra/gae/apps/helloworld/helloworld.infra_testing » ('j') | go/test.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | go/src/infra/gae/apps/helloworld/helloworld.infra_testing » ('j') | go/test.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698