(Feat): Initial Commit
Some checks failed
Build & Test / build-test (push) Has been cancelled
Build & Test / swagger-codegen-cli (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled

This commit is contained in:
2026-07-03 19:41:31 +05:30
commit 7e940c83a7
461 changed files with 45002 additions and 0 deletions

20
internal/util/log_test.go Normal file
View File

@@ -0,0 +1,20 @@
package util_test
import (
"testing"
"allaboutapps.dev/aw/go-starter/internal/util"
"github.com/rs/zerolog"
"github.com/stretchr/testify/assert"
)
func TestLogLevelFromString(t *testing.T) {
res := util.LogLevelFromString("panic")
assert.Equal(t, zerolog.PanicLevel, res)
res = util.LogLevelFromString("warn")
assert.Equal(t, zerolog.WarnLevel, res)
res = util.LogLevelFromString("foo")
assert.Equal(t, zerolog.DebugLevel, res)
}