"go fmt" fixups
Apparently my editor is still not reliably formatting on save, so I missed a few formatting quirks in these files.
This commit is contained in:
parent
73c9521a04
commit
5255e85238
|
@ -1,9 +1,9 @@
|
|||
package command
|
||||
|
||||
import (
|
||||
"log"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
|
|
@ -343,7 +343,7 @@ func TestRefresh_outPath(t *testing.T) {
|
|||
t.Fatalf("wrong new object\ngot: %swant: %s", spew.Sdump(actual), spew.Sdump(expected))
|
||||
}
|
||||
|
||||
if _, err := os.Stat(outPath+DefaultBackupExtension); !os.IsNotExist(err) {
|
||||
if _, err := os.Stat(outPath + DefaultBackupExtension); !os.IsNotExist(err) {
|
||||
if err != nil {
|
||||
t.Fatalf("failed to test for backup file: %s", err)
|
||||
}
|
||||
|
|
|
@ -256,7 +256,7 @@ func TestFilesystem_backupAndReadPath(t *testing.T) {
|
|||
// The backup functionality should've saved a copy of the original contents
|
||||
// of the _output_ file, even though the first snapshot was read from
|
||||
// the _input_ file.
|
||||
t.Run("backup file", func (t *testing.T) {
|
||||
t.Run("backup file", func(t *testing.T) {
|
||||
bfh, err := os.Open(backupPath)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
@ -270,7 +270,7 @@ func TestFilesystem_backupAndReadPath(t *testing.T) {
|
|||
t.Errorf("wrong marker value in backup state file\ngot: %#v\nwant: %#v", got, want)
|
||||
}
|
||||
})
|
||||
t.Run("output file", func (t *testing.T) {
|
||||
t.Run("output file", func(t *testing.T) {
|
||||
ofh, err := os.Open(outFile.Name())
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
Loading…
Reference in New Issue