(b *testing.B)
| 79 | } |
| 80 | |
| 81 | func BenchmarkRealIPForHeaderXForwardFor(b *testing.B) { |
| 82 | c := Context{request: &http.Request{ |
| 83 | Header: http.Header{HeaderXForwardedFor: []string{"127.0.0.1, 127.0.1.1, "}}, |
| 84 | }} |
| 85 | for i := 0; i < b.N; i++ { |
| 86 | c.RealIP() |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | func (t *Template) Render(c *Context, w io.Writer, name string, data any) error { |
| 91 | return t.templates.ExecuteTemplate(w, name, data) |
nothing calls this directly
no test coverage detected
searching dependent graphs…