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

Unified Diff: service/datastore/raw_interface.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: service/datastore/raw_interface.go
diff --git a/service/datastore/raw_interface.go b/service/datastore/raw_interface.go
index fee4138f86c3812f8afdb8230fab8be0d6de1ee3..a3db860d9587acaff05075cdecc1d557eb664fc7 100644
--- a/service/datastore/raw_interface.go
+++ b/service/datastore/raw_interface.go
@@ -192,4 +192,8 @@ type RawInterface interface {
// - none keys of the keys are 'special' (use a kind prefixed with '__')
// - cb is not nil
DeleteMulti(keys []Key, cb DeleteMultiCB) error
+
+ // Testable returns the Testable interface for the implementation, or nil if
+ // there is none.
+ Testable() Testable
}

Powered by Google App Engine
This is Rietveld 408576698