Commit 39d06000 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/virtualbox: fmt

parent d5695739
...@@ -57,7 +57,7 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) { ...@@ -57,7 +57,7 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
templates := map[string]*string{ templates := map[string]*string{
"source_path": &c.SourcePath, "source_path": &c.SourcePath,
"vm_name": &c.VMName, "vm_name": &c.VMName,
} }
for n, ptr := range templates { for n, ptr := range templates {
......
package ovf package ovf
import ( import (
"testing"
"io/ioutil" "io/ioutil"
"os" "os"
"testing"
) )
func testConfig(t *testing.T) map[string]interface{} { func testConfig(t *testing.T) map[string]interface{} {
return map[string]interface{}{ return map[string]interface{}{
"ssh_username": "foo", "ssh_username": "foo",
"shutdown_command": "foo", "shutdown_command": "foo",
} }
} }
...@@ -31,7 +31,6 @@ func testConfigOk(t *testing.T, warns []string, err error) { ...@@ -31,7 +31,6 @@ func testConfigOk(t *testing.T, warns []string, err error) {
} }
} }
func TestNewConfig_sourcePath(t *testing.T) { func TestNewConfig_sourcePath(t *testing.T) {
// Bad // Bad
c := testConfig(t) c := testConfig(t)
...@@ -58,4 +57,3 @@ func TestNewConfig_sourcePath(t *testing.T) { ...@@ -58,4 +57,3 @@ func TestNewConfig_sourcePath(t *testing.T) {
_, warns, errs = NewConfig(c) _, warns, errs = NewConfig(c)
testConfigOk(t, warns, errs) testConfigOk(t, warns, errs)
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment