Files
katenary/internal/generator/labels/labelstructs/configMap_test.go

19 lines
411 B
Go
Raw Normal View History

package labelstructs_test
import (
"testing"
2025-08-19 23:09:50 +02:00
2025-08-19 23:58:51 +02:00
"katenary.io/internal/generator/labels/labelstructs"
)
func TestConfigMapFileFrom(t *testing.T) {
ts := "- foo/bar"
tc2, _ := labelstructs.ConfigMapFileFrom(ts)
if len(tc2) != 1 {
t.Errorf("Expected ConfigMapFile to have 1 item, got %d", len(tc2))
}
if tc2[0] != "foo/bar" {
t.Errorf("Expected ConfigMapFile to contain 'foo/bar', got %s", tc2[0])
}
}