Initial commit

This commit is contained in:
Yaser
2026-08-13 20:20:47 +03:30
commit 78a0c832d7
33 changed files with 3399 additions and 0 deletions

22
cmd/rango/rango_test.go Normal file
View File

@@ -0,0 +1,22 @@
package main
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestRango_envToMatrix(t *testing.T) {
env := []string{
"PREFIXED_HELLO=world",
"PREFIXED_ONE=TWO,three,four",
"PREFIXED_FOO=bar",
}
matrix := envToMatrix(env, "PREFIXED_")
assert.Len(t, matrix, 3)
assert.Equal(t, "world", matrix["hello"][0])
assert.Equal(t, []string{"TWO", "three", "four"}, matrix["one"])
assert.Equal(t, "bar", matrix["foo"][0])
}