(t *testing.T)
| 37 | } |
| 38 | |
| 39 | func TestLogWriterWithCompression(t *testing.T) { |
| 40 | path, _ := filepath.Abs("./log_test/audit.log") |
| 41 | defer os.RemoveAll(filepath.Dir(path)) |
| 42 | lw := &LogWriter{ |
| 43 | FilePath: path, |
| 44 | MaxSize: 1, |
| 45 | MaxAge: 1, |
| 46 | Compress: true, |
| 47 | } |
| 48 | |
| 49 | lw, _ = lw.Init() |
| 50 | writeToLogWriterAndVerify(t, lw, path) |
| 51 | } |
| 52 | |
| 53 | // if this test failed and you changed anything, please check the dgraph audit decrypt command. |
| 54 | // The dgraph audit decrypt command uses the same decryption method |
nothing calls this directly
no test coverage detected