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

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: rebase 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.go
diff --git a/impl/dummy/dummy.go b/impl/dummy/dummy.go
index e5b11185dde97f35e546ec398c911df0ffbf27a1..94978754aa3f897e1ec04ef8c31b27e55cc65da4 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 { panic(ni()) }
dnj (Google) 2015/08/14 22:53:54 Interface docs suggests this should return "nil" r
iannucci 2015/08/15 01:59:25 Done.
var dummyDSInst = ds{}
« no previous file with comments | « filter/count/rds.go ('k') | impl/memory/datastore.go » ('j') | service/datastore/interface.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698