mirror of
https://github.com/openshift/source-to-image.git
synced 2026-02-05 12:44:54 +01:00
17 lines
316 B
Go
17 lines
316 B
Go
package scripts
|
|
|
|
import "testing"
|
|
|
|
func TestConvertEnvironment(t *testing.T) {
|
|
env := []Environment{
|
|
{"FOO", "BAR"},
|
|
}
|
|
result := ConvertEnvironment(env)
|
|
if len(result) != 1 {
|
|
t.Errorf("Expected 1 item, got %d", len(result))
|
|
}
|
|
if result[0] != "FOO=BAR" {
|
|
t.Errorf("Expected FOO=BAR, got %v", result)
|
|
}
|
|
}
|