(t *testing.T)
| 36 | } |
| 37 | |
| 38 | func TestCustomOutputForAccessLog(t *testing.T) { |
| 39 | var buf bytes.Buffer |
| 40 | lg := NewAccessLogger(Options{AccessLogOutput: &buf}) |
| 41 | lg.LogAccess(&AccessEntry{StatusCode: http.StatusTeapot}, nil) |
| 42 | if !strings.Contains(buf.String(), strconv.Itoa(http.StatusTeapot)) { |
| 43 | t.Error("failed to use custom access log output") |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | func TestApplicationLogJSONEnabled(t *testing.T) { |
| 48 | var buf bytes.Buffer |
nothing calls this directly
no test coverage detected
searching dependent graphs…