mirror of
https://github.com/ManyakRus/starter.git
synced 2025-11-25 23:02:22 +02:00
42 lines
844 B
Go
42 lines
844 B
Go
package logger
|
|
|
|
//import (
|
|
// "runtime"
|
|
// "testing"
|
|
//)
|
|
//
|
|
//func TestGetLog(t *testing.T) {
|
|
// log1 := GetLog()
|
|
// if log1 == nil {
|
|
// t.Error("logger_test.TestGetLog() GetLog()= nil ! ")
|
|
// }
|
|
//
|
|
//}
|
|
//
|
|
////func TestDefaultFieldsHook_Fire(t *testing.T) {
|
|
//// df := &DefaultFieldsHook{}
|
|
//// lre := &logrus.Entry{}
|
|
//// df.Fire(lre)
|
|
////}
|
|
////
|
|
////func TestDefaultFieldsHook_Levels(t *testing.T) {
|
|
//// df := &DefaultFieldsHook{}
|
|
//// df.Levels()
|
|
////}
|
|
//
|
|
//func TestCallerPrettyfier(t *testing.T) {
|
|
//
|
|
// frame := runtime.Frame{}
|
|
// FunctionName, FileName := CallerPrettyfier(&frame)
|
|
// if FunctionName == "" {
|
|
// //t.Error("TestCallerPrettyfier error: FunctionName is empty")
|
|
// }
|
|
// if FileName == "" {
|
|
// t.Error("TestCallerPrettyfier error: FileName is empty")
|
|
// }
|
|
//}
|
|
//
|
|
//func TestSetLevel(t *testing.T) {
|
|
// SetLevel("debug")
|
|
//}
|