Skip to content

Commit

Permalink
all: gofmt -s
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Aug 7, 2017
1 parent 40d7d3b commit 4b54fb0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion hugolib/site_benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func doBenchMarkSiteBuilding(conf siteBuildingBenchmarkConfig, b *testing.B) {

// Try to help the GC
sites[0] = nil
sites = sites[1:len(sites)]
sites = sites[1:]
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions media/mediaType_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func TestDecodeTypes(t *testing.T) {
{
"Redefine JSON",
[]map[string]interface{}{
map[string]interface{}{
{
"application/json": map[string]interface{}{
"suffix": "jsn"}}},
false,
Expand All @@ -102,7 +102,7 @@ func TestDecodeTypes(t *testing.T) {
{
"Add custom media type",
[]map[string]interface{}{
map[string]interface{}{
{
"text/hugo": map[string]interface{}{
"suffix": "hgo"}}},
false,
Expand All @@ -119,7 +119,7 @@ func TestDecodeTypes(t *testing.T) {
{
"Add media type invalid key",
[]map[string]interface{}{
map[string]interface{}{
{
"text/hugo+hgo": map[string]interface{}{}}},
true,
func(t *testing.T, name string, tt Types) {
Expand Down
10 changes: 5 additions & 5 deletions output/outputFormat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func TestDecodeFormats(t *testing.T) {
{
"Redefine JSON",
[]map[string]interface{}{
map[string]interface{}{
{
"JsON": map[string]interface{}{
"baseName": "myindex",
"isPlainText": "false"}}},
Expand All @@ -161,7 +161,7 @@ func TestDecodeFormats(t *testing.T) {
{
"Add XML format with string as mediatype",
[]map[string]interface{}{
map[string]interface{}{
{
"MYXMLFORMAT": map[string]interface{}{
"baseName": "myxml",
"mediaType": "application/xml",
Expand All @@ -182,7 +182,7 @@ func TestDecodeFormats(t *testing.T) {
{
"Add format unknown mediatype",
[]map[string]interface{}{
map[string]interface{}{
{
"MYINVALID": map[string]interface{}{
"baseName": "mymy",
"mediaType": "application/hugo",
Expand All @@ -194,12 +194,12 @@ func TestDecodeFormats(t *testing.T) {
{
"Add and redefine XML format",
[]map[string]interface{}{
map[string]interface{}{
{
"MYOTHERXMLFORMAT": map[string]interface{}{
"baseName": "myotherxml",
"mediaType": media.XMLType,
}},
map[string]interface{}{
{
"MYOTHERXMLFORMAT": map[string]interface{}{
"baseName": "myredefined",
}},
Expand Down
2 changes: 1 addition & 1 deletion tpl/collections/index_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestIndex(t *testing.T) {
{[]int{0, 1}, []interface{}{0}, 0, false},
{[]int{0, 1}, []interface{}{9}, nil, false}, // index out of range
{[]uint{0, 1}, nil, []uint{0, 1}, false},
{[][]int{[]int{1, 2}, []int{3, 4}}, []interface{}{0, 0}, 1, false},
{[][]int{{1, 2}, {3, 4}}, []interface{}{0, 0}, 1, false},
{map[int]int{1: 10, 2: 20}, []interface{}{1}, 10, false},
{map[int]int{1: 10, 2: 20}, []interface{}{0}, 0, false},
// errors
Expand Down

0 comments on commit 4b54fb0

Please sign in to comment.