mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-08 23:40:40 +02:00
Apply gofmt -s
This commit is contained in:
@@ -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{}
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user