Apply gofmt -s

This commit is contained in:
Bjørn Erik Pedersen
2016-02-06 12:29:13 +01:00
parent eebf00f702
commit 318a984526
6 changed files with 7 additions and 9 deletions

View File

@@ -20,12 +20,12 @@ import (
"fmt"
"github.com/spf13/cast"
"html/template"
"math/rand"
"path"
"reflect"
"runtime"
"testing"
"time"
"math/rand"
"github.com/stretchr/testify/assert"
)
@@ -345,7 +345,7 @@ func TestAfter(t *testing.T) {
func TestShuffleInputAndOutputFormat(t *testing.T) {
for i, this := range []struct {
sequence interface{}
success bool
success bool
}{
{[]string{"a", "b", "c", "d"}, true},
{[]int{100, 200, 300}, true},
@@ -406,7 +406,6 @@ func TestShuffleRandomising(t *testing.T) {
}
}
func TestDictionary(t *testing.T) {
for i, this := range []struct {
v1 []interface{}

View File

@@ -270,7 +270,7 @@ func TestGetCSVFailParseSep(t *testing.T) {
url := ts.URL + "/test.csv"
defer os.Remove(getCacheFileID(url))
want := [][]string{[]string{"gomeetup", "city"}, []string{"yes", "Sydney"}, []string{"yes", "San Francisco"}, []string{"yes", "Stockholm"}}
want := [][]string{{"gomeetup", "city"}, {"yes", "Sydney"}, {"yes", "San Francisco"}, {"yes", "Stockholm"}}
have := GetCSV(",", url)
assert.NotNil(t, have)
if have != nil {
@@ -301,7 +301,7 @@ func TestGetCSVFailParse(t *testing.T) {
url := ts.URL + "/test.csv"
defer os.Remove(getCacheFileID(url))
want := [][]string{[]string{"gomeetup", "city"}, []string{"yes", "Sydney"}, []string{"yes", "San Francisco"}, []string{"yes", "Stockholm"}}
want := [][]string{{"gomeetup", "city"}, {"yes", "Sydney"}, {"yes", "San Francisco"}, {"yes", "Stockholm"}}
have := GetCSV(",", url)
assert.NotNil(t, have)
if have != nil {