MCPcopy
hub / github.com/dgraph-io/dgraph / TestLogWriterWithCompression

Function TestLogWriterWithCompression

x/log_writer_test.go:39–51  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

37}
38
39func 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

Callers

nothing calls this directly

Calls 3

InitMethod · 0.95
RemoveAllMethod · 0.80

Tested by

no test coverage detected