You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

131 lines
2.1 KiB

package applogger
import (
"go.uber.org/zap/zapcore"
"testing"
)
func TestDebug(t *testing.T) {
type args struct {
template string
args []interface{}
}
tests := []struct {
name string
args args
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Debug(tt.args.template, tt.args.args...)
})
}
}
func TestError(t *testing.T) {
type args struct {
template string
args []interface{}
}
tests := []struct {
name string
args args
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Error(tt.args.template, tt.args.args...)
})
}
}
func TestFatal(t *testing.T) {
type args struct {
template string
args []interface{}
}
tests := []struct {
name string
args args
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Fatal(tt.args.template, tt.args.args...)
})
}
}
func TestInfo(t *testing.T) {
type args struct {
template string
args []interface{}
}
tests := []struct {
name string
args args
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Info(tt.args.template, tt.args.args...)
})
}
}
func TestPanic(t *testing.T) {
type args struct {
template string
args []interface{}
}
tests := []struct {
name string
args args
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Panic(tt.args.template, tt.args.args...)
})
}
}
func TestSetLevel(t *testing.T) {
type args struct {
level zapcore.Level
}
tests := []struct {
name string
args args
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
SetLevel(tt.args.level)
})
}
}
func TestWarn(t *testing.T) {
type args struct {
template string
args []interface{}
}
tests := []struct {
name string
args args
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Warn(tt.args.template, tt.args.args...)
})
}
}