github.com/OrigamiWang/msd/micro@v0.0.0-20240229032328-b62246268db9/util/log/logutil_test.go (about) 1 package logutil 2 3 import ( 4 "testing" 5 ) 6 7 func TestInfo(t *testing.T) { 8 type args struct { 9 arg0 interface{} 10 args []interface{} 11 } 12 tests := []struct { 13 name string 14 args args 15 }{ 16 // TODO: Add test cases. 17 { 18 name: "", 19 args: args{ 20 arg0: "info...", 21 }, 22 }, 23 } 24 for _, tt := range tests { 25 t.Run(tt.name, func(t *testing.T) { 26 Info(tt.args.arg0, tt.args.args...) 27 }) 28 } 29 } 30 31 func TestDebug(t *testing.T) { 32 type args struct { 33 arg0 interface{} 34 args []interface{} 35 } 36 tests := []struct { 37 name string 38 args args 39 }{ 40 // TODO: Add test cases. 41 { 42 name: "", 43 args: args{ 44 arg0: "debug...", 45 }, 46 }, 47 } 48 for _, tt := range tests { 49 t.Run(tt.name, func(t *testing.T) { 50 Debug(tt.args.arg0, tt.args.args...) 51 }) 52 } 53 } 54 55 func TestError(t *testing.T) { 56 type args struct { 57 arg0 interface{} 58 args []interface{} 59 } 60 tests := []struct { 61 name string 62 args args 63 }{ 64 // TODO: Add test cases. 65 { 66 name: "", 67 args: args{ 68 arg0: "error...", 69 }, 70 }, 71 } 72 for _, tt := range tests { 73 t.Run(tt.name, func(t *testing.T) { 74 Error(tt.args.arg0, tt.args.args...) 75 }) 76 } 77 } 78 79 func TestWarn(t *testing.T) { 80 type args struct { 81 arg0 interface{} 82 args []interface{} 83 } 84 tests := []struct { 85 name string 86 args args 87 }{ 88 // TODO: Add test cases. 89 } 90 for _, tt := range tests { 91 t.Run(tt.name, func(t *testing.T) { 92 Warn(tt.args.arg0, tt.args.args...) 93 }) 94 } 95 }