Fix gofmt and golint issues (#90)

This commit is contained in:
Cameron Moore
2016-08-22 04:20:25 -05:00
committed by Thomas Pelletier
parent e6271032cc
commit bfe4a7e160
5 changed files with 21 additions and 21 deletions
+4 -6
View File
@@ -1,11 +1,11 @@
package main
import (
"testing"
"strings"
"bytes"
"os"
"io/ioutil"
"os"
"strings"
"testing"
)
func expectBufferEquality(t *testing.T, name string, buffer *bytes.Buffer, expected string) {
@@ -32,7 +32,6 @@ func expectProcessMainResults(t *testing.T, input string, args []string, exitCod
}
}
func TestProcessMainReadFromStdin(t *testing.T) {
input := `
[mytoml]
@@ -54,7 +53,6 @@ func TestProcessMainReadFromFile(t *testing.T) {
[mytoml]
a = 42`
tmpfile, err := ioutil.TempFile("", "example.toml")
if err != nil {
t.Fatal(err)
@@ -81,4 +79,4 @@ func TestProcessMainReadFromMissingFile(t *testing.T) {
expectedError := `open /this/file/does/not/exist: no such file or directory
`
expectProcessMainResults(t, ``, []string{"/this/file/does/not/exist"}, -1, ``, expectedError)
}
}