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

Unified Diff: impl/dummy/dummy_test.go

Issue 1270063003: Make the rest of the services have a similar raw/user interface structure. (Closed) Base URL: https://github.com/luci/gae.git@add_datastore
Patch Set: Created 5 years, 4 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
Index: impl/dummy/dummy_test.go
diff --git a/impl/dummy/dummy_test.go b/impl/dummy/dummy_test.go
index 0eefeb23923006b172415333b13d0f07015c74f1..001877381181637823c69292ad0ca8450770f8ee 100644
--- a/impl/dummy/dummy_test.go
+++ b/impl/dummy/dummy_test.go
@@ -28,8 +28,9 @@ func TestContextAccess(t *testing.T) {
c := context.Background()
Convey("blank", func() {
- So(mcS.Get(c), ShouldBeNil)
- So(tqS.Get(c), ShouldBeNil)
+ So(dsS.GetRaw(c), ShouldBeNil)
+ So(mcS.GetRaw(c), ShouldBeNil)
+ So(tqS.GetRaw(c), ShouldBeNil)
So(infoS.Get(c), ShouldBeNil)
})
@@ -54,16 +55,16 @@ func TestContextAccess(t *testing.T) {
})
Convey("Memcache", func() {
- c = mcS.Set(c, Memcache())
+ c = mcS.SetRaw(c, Memcache())
So(mcS.Get(c), ShouldNotBeNil)
So(func() {
defer p()
mcS.Get(c).Add(nil)
- }, ShouldPanicWith, "dummy: method Memcache.Add is not implemented")
+ }, ShouldPanicWith, "dummy: method Memcache.AddMulti is not implemented")
})
Convey("TaskQueue", func() {
- c = tqS.Set(c, TaskQueue())
+ c = tqS.SetRaw(c, TaskQueue())
So(tqS.Get(c), ShouldNotBeNil)
So(func() {
defer p()
« no previous file with comments | « impl/dummy/dummy.go ('k') | impl/memory/memcache.go » ('j') | impl/memory/memcache.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698