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

Function TestNameMultipleCalls

mux_test.go:1458–1465  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1456}
1457
1458func TestNameMultipleCalls(t *testing.T) {
1459 r1 := NewRouter()
1460 rt := r1.NewRoute().Name("foo").Name("bar")
1461 err := rt.GetError()
1462 if err == nil {
1463 t.Errorf("Expected an error")
1464 }
1465}
1466
1467func TestStrictSlash(t *testing.T) {
1468 r := NewRouter()

Callers

nothing calls this directly

Calls 4

NewRouteMethod · 0.95
NewRouterFunction · 0.85
GetErrorMethod · 0.80
NameMethod · 0.45

Tested by

no test coverage detected