(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

41
internal/util/map_test.go Normal file
View File

@@ -0,0 +1,41 @@
package util_test
import (
"testing"
"allaboutapps.dev/aw/go-starter/internal/util"
"github.com/stretchr/testify/assert"
)
func TestMergeStringMap(t *testing.T) {
baseMap := map[string]string{
"A": "a",
"B": "b",
"C": "c",
}
toMerge := map[string]string{
"C": "1",
"D": "2",
}
expected := map[string]string{
"A": "a",
"B": "b",
"C": "c",
"D": "2",
}
res := util.MergeStringMap(baseMap, toMerge)
assert.Equal(t, expected, res)
expected = map[string]string{
"C": "1",
"D": "2",
"A": "a",
"B": "b",
}
res = util.MergeStringMap(toMerge, baseMap)
assert.Equal(t, expected, res)
}