()
| 199 | } |
| 200 | |
| 201 | func ExampleDebugHandler_Section() { |
| 202 | mux := http.NewServeMux() |
| 203 | dbg := Debugger(mux) |
| 204 | // Adds a section to /debug/ that dumps the HTTP request of the |
| 205 | // visitor. |
| 206 | dbg.Section(func(w io.Writer, r *http.Request) { |
| 207 | io.WriteString(w, "<h3>Dump of your HTTP request</h3>") |
| 208 | fmt.Fprintf(w, "<code>%#v</code>", r) |
| 209 | }) |
| 210 | } |
| 211 | |
| 212 | func TestParseTrustedCIDRs(t *testing.T) { |
| 213 | tests := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…