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

Unified Diff: impl/memory/taskqueue_data.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 | « impl/memory/taskqueue.go ('k') | impl/memory/taskqueue_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/memory/taskqueue_data.go
diff --git a/impl/memory/taskqueue_data.go b/impl/memory/taskqueue_data.go
index 72375f435e447eca7e9ad6156270213e448c54c5..4bc24a1a7436a074e6b3071393818ef83146b426 100644
--- a/impl/memory/taskqueue_data.go
+++ b/impl/memory/taskqueue_data.go
@@ -32,10 +32,10 @@ type taskQueueData struct {
archived tq.QueueData
}
-var (
- _ = memContextObj((*taskQueueData)(nil))
- _ = tq.Testable((*taskQueueData)(nil))
-)
+var _ interface {
+ memContextObj
+ tq.Testable
+} = (*taskQueueData)(nil)
func newTaskQueueData() memContextObj {
return &taskQueueData{
@@ -191,10 +191,10 @@ type txnTaskQueueData struct {
parent *taskQueueData
}
-var (
- _ = memContextObj((*txnTaskQueueData)(nil))
- _ = tq.Testable((*txnTaskQueueData)(nil))
-)
+var _ interface {
+ memContextObj
+ tq.Testable
+} = (*txnTaskQueueData)(nil)
func (t *txnTaskQueueData) canApplyTxn(obj memContextObj) bool { return false }
func (t *txnTaskQueueData) applyTxn(context.Context, memContextObj) { panic("impossible") }
« no previous file with comments | « impl/memory/taskqueue.go ('k') | impl/memory/taskqueue_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698