mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-22 07:32:32 +01:00
test: imports basic tests, all passing.
This commit is contained in:
@@ -39,6 +39,12 @@ var commands map[string]config.Command
|
||||
|
||||
func init() {
|
||||
commands = make(map[string]config.Command)
|
||||
|
||||
// Skip initialization if config is not loaded (e.g., during tests)
|
||||
if config.ErupeConfig == nil {
|
||||
return
|
||||
}
|
||||
|
||||
zapConfig := zap.NewDevelopmentConfig()
|
||||
zapConfig.DisableCaller = true
|
||||
zapLogger, _ := zapConfig.Build()
|
||||
|
||||
Reference in New Issue
Block a user