pomerium/internal/httputil/router_test.go
Bobby DeSimone b3d3159185
httputil : wrap handlers for additional context (#413)
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-12-06 11:07:45 -08:00

24 lines
429 B
Go

package httputil
import (
"reflect"
"testing"
"github.com/gorilla/mux"
)
func TestNewRouter(t *testing.T) {
tests := []struct {
name string
want *mux.Router
}{
{"this is a gorilla router right?", mux.NewRouter()},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := NewRouter(); !reflect.DeepEqual(got, tt.want) {
t.Errorf("NewRouter() = %v, want %v", got, tt.want)
}
})
}
}