From d116ca0e9b3dc4a5f83ccdfd098aed9b266aa4c2 Mon Sep 17 00:00:00 2001 From: Coda Hale Date: Sat, 12 Apr 2014 11:42:42 -0700 Subject: [PATCH] Move type assertions into tests. --- web/mux.go | 4 ---- web/mux_test.go | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/mux.go b/web/mux.go index f79867f..ed087e3 100644 --- a/web/mux.go +++ b/web/mux.go @@ -56,10 +56,6 @@ type Mux struct { router } -// Sanity check types -var _ http.Handler = &Mux{} -var _ Handler = &Mux{} - // New creates a new Mux without any routes or middleware. func New() *Mux { mux := Mux{ diff --git a/web/mux_test.go b/web/mux_test.go index 4eee7cd..6e6619c 100644 --- a/web/mux_test.go +++ b/web/mux_test.go @@ -6,6 +6,10 @@ import ( "testing" ) +// Sanity check types +var _ http.Handler = &Mux{} +var _ Handler = &Mux{} + // There's... really not a lot to do here. func TestIfItWorks(t *testing.T) {