MCPcopy
hub / github.com/gorilla/mux / TestVariableNames

Function TestVariableNames

old_test.go:590–595  ·  old_test.go::TestVariableNames
(t *testing.T)

Source from the content-addressed store, hash-verified

588}
589
590func TestVariableNames(t *testing.T) {
591 route := new(Route).Host("{arg1}.domain.com").Path("/{arg1}/{arg2:[0-9]+}")
592 if route.err == nil {
593 t.Errorf("Expected error for duplicated variable names")
594 }
595}
596
597func TestRedirectSlash(t *testing.T) {
598 var route *Route

Callers

nothing calls this directly

Calls 2

PathMethod · 0.45
HostMethod · 0.45

Tested by

no test coverage detected