(t *testing.T)
| 47 | } |
| 48 | |
| 49 | func 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 | |
| 66 | func TestNewLogFile(t *testing.T) { |
| 67 | defer func() { |
nothing calls this directly
no test coverage detected