1
0
Fork 0
mirror of https://github.com/pomerium/pomerium.git synced 2025-05-19 12:07:18 +02:00
pomerium/internal/httputil/router_test.go
Bobby DeSimone b3d3159185
httputil : wrap handlers for additional context ()
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)
}
})
}
}