mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-12 08:23:48 +02:00
25 lines
382 B
Go
25 lines
382 B
Go
|
package docker
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func Test_toContainerConfig(t *testing.T) {
|
||
|
t.Skip()
|
||
|
}
|
||
|
|
||
|
func Test_toAuthConfig(t *testing.T) {
|
||
|
t.Skip()
|
||
|
}
|
||
|
|
||
|
func Test_toEnvironmentSlice(t *testing.T) {
|
||
|
env := map[string]string{
|
||
|
"HOME": "/root",
|
||
|
}
|
||
|
envs := toEnvironmentSlice(env)
|
||
|
want, got := "HOME=/root", envs[0]
|
||
|
if want != got {
|
||
|
t.Errorf("Wanted envar %s got %s", want, got)
|
||
|
}
|
||
|
}
|