(w http.ResponseWriter, r *http.Request)
| 2789 | } |
| 2790 | |
| 2791 | func (h customMethodNotAllowedHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
| 2792 | w.WriteHeader(http.StatusMethodNotAllowed) |
| 2793 | fmt.Fprint(w, h.msg) |
| 2794 | } |
| 2795 | |
| 2796 | func TestSubrouterCustomMethodNotAllowed(t *testing.T) { |
| 2797 | handler := func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) } |
no test coverage detected