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

Unified Diff: impl/dummy/dummy.go

Issue 1285703002: Add testable interface for datastore. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: fixes after Raw change 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
« no previous file with comments | « filter/count/rds.go ('k') | impl/memory/datastore.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/dummy/dummy.go
diff --git a/impl/dummy/dummy.go b/impl/dummy/dummy.go
index e5b11185dde97f35e546ec398c911df0ffbf27a1..6fd3fdb3a793c198713000be4b25662169918540 100644
--- a/impl/dummy/dummy.go
+++ b/impl/dummy/dummy.go
@@ -80,6 +80,7 @@ func (ds) Run(datastore.Query, datastore.RawRunCB) error { panic(ni
func (ds) RunInTransaction(func(context.Context) error, *datastore.TransactionOptions) error {
panic(ni())
}
+func (ds) Testable() datastore.Testable { return nil }
var dummyDSInst = ds{}
@@ -117,7 +118,7 @@ func (tq) AddMulti([]*taskqueue.Task, string, taskqueue.RawTaskCB) error { panic
func (tq) DeleteMulti([]*taskqueue.Task, string, taskqueue.RawCB) error { panic(ni()) }
func (tq) Purge(string) error { panic(ni()) }
func (tq) Stats([]string, taskqueue.RawStatsCB) error { panic(ni()) }
-func (tq) Testable() taskqueue.Testable { panic(ni()) }
+func (tq) Testable() taskqueue.Testable { return nil }
var dummyTQInst = tq{}
« no previous file with comments | « filter/count/rds.go ('k') | impl/memory/datastore.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698