packer-cn/builder/vmware/vmx/config_test.go

28 lines
456 B
Go

package vmx
import (
"testing"
)
func testConfig(t *testing.T) map[string]interface{} {
return map[string]interface{}{}
}
func testConfigErr(t *testing.T, warns []string, err error) {
if len(warns) > 0 {
t.Fatalf("bad: %#v", warns)
}
if err == nil {
t.Fatal("should error")
}
}
func testConfigOk(t *testing.T, warns []string, err error) {
if len(warns) > 0 {
t.Fatalf("bad: %#v", warns)
}
if err != nil {
t.Fatalf("bad: %s", err)
}
}