MCPcopy Create free account
hub / github.com/DNAProject/DNA / TestLog

Function TestLog

common/log/log_test.go:49–64  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

47}
48
49func TestLog(t *testing.T) {
50 defer func() {
51 os.RemoveAll("Log/")
52 }()
53
54 InitLog(InfoLog, PATH, Stdout)
55 Log.SetDebugLevel(DebugLog)
56 logPrint()
57
58 Log.SetDebugLevel(WarnLog)
59
60 logPrint()
61
62 err := ClosePrintLog()
63 assert.Nil(t, err)
64}
65
66func TestNewLogFile(t *testing.T) {
67 defer func() {

Callers

nothing calls this directly

Calls 4

InitLogFunction · 0.85
logPrintFunction · 0.85
ClosePrintLogFunction · 0.85
SetDebugLevelMethod · 0.80

Tested by

no test coverage detected