(t *testing.T)
| 23 | ) |
| 24 | |
| 25 | func TestLogWriter(t *testing.T) { |
| 26 | path, _ := filepath.Abs("./log_test/audit.log") |
| 27 | defer os.RemoveAll(filepath.Dir(path)) |
| 28 | lw := &LogWriter{ |
| 29 | FilePath: path, |
| 30 | MaxSize: 1, |
| 31 | MaxAge: 1, |
| 32 | Compress: false, |
| 33 | } |
| 34 | |
| 35 | lw, _ = lw.Init() |
| 36 | writeToLogWriterAndVerify(t, lw, path) |
| 37 | } |
| 38 | |
| 39 | func TestLogWriterWithCompression(t *testing.T) { |
| 40 | path, _ := filepath.Abs("./log_test/audit.log") |
nothing calls this directly
no test coverage detected