Browse Source

Move type assertions into tests.

Coda Hale 12 years ago
parent
commit
d116ca0e9b
2 changed files with 4 additions and 4 deletions
  1. +0
    -4
      web/mux.go
  2. +4
    -0
      web/mux_test.go

+ 0
- 4
web/mux.go View File

@ -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{


+ 4
- 0
web/mux_test.go View File

@ -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) {


Loading…
Cancel
Save