(t *testing.T)
| 13 | ) |
| 14 | |
| 15 | func TestCustomOutputForApplicationLog(t *testing.T) { |
| 16 | var buf bytes.Buffer |
| 17 | _ = NewAccessLogger(Options{ApplicationLogOutput: &buf}) |
| 18 | msg := "Hello, world!" |
| 19 | log.Info(msg) |
| 20 | if !strings.Contains(buf.String(), msg) { |
| 21 | t.Error("failed to use custom output") |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | func TestCustomPrefixForApplicationLog(t *testing.T) { |
| 26 | var buf bytes.Buffer |
nothing calls this directly
no test coverage detected
searching dependent graphs…