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

Unified Diff: doc.go

Issue 1282673002: Make obtaining the Testable interface actually part of the interface. (Closed) Base URL: https://github.com/luci/gae.git@master
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
« no previous file with comments | « no previous file | filter/count/tq.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: doc.go
diff --git a/doc.go b/doc.go
index de4c3a8152620eab1e49abc6558ae13fa72aea05..483b7c0a4cd1b03b4ddbc1e8a80baac2f24bfd35 100644
--- a/doc.go
+++ b/doc.go
@@ -108,9 +108,11 @@
// lacks convenience methods.
//
// service.Testable - any additional methods that a 'testing'
-// implementation should provide. It's expected that
-// tests will cast the RawInterface from GetRaw() to
-// Testable in order to access these methods.
+// implementation should provide. This can be accessed
+// via the Testable method on Interface or
+// RawInterface. If the current implementation is not
+// testable, it will return nil. This is only meant to
+// be accessed when testing.
//
// service.RawFactory - a function returning a RawInterface
//
« no previous file with comments | « no previous file | filter/count/tq.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698