Initial commit

This commit is contained in:
yan.y
2024-03-27 23:25:08 +08:00
commit 0884384e91
127 changed files with 9353 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package zap_server
import (
"testing"
)
func TestGetEncoderConfig(t *testing.T) {
defer Remove()
t.Run("test zap_server get encoder config", func(t *testing.T) {
config := getEncoderConfig()
if config.StacktraceKey != CONFIG.StacktraceKey {
t.Errorf("zaplog config stacktracekey want %s but get %s", CONFIG.StacktraceKey, config.StacktraceKey)
}
})
}