mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
Run gofmt -s
This commit is contained in:
@@ -100,16 +100,16 @@ func TestGroup(t *testing.T) {
|
||||
items interface{}
|
||||
expect interface{}
|
||||
}{
|
||||
{"a", []*tstGrouper{&tstGrouper{}, &tstGrouper{}}, "a(2)"},
|
||||
{"a", []*tstGrouper{{}, {}}, "a(2)"},
|
||||
{"b", tstGroupers{&tstGrouper{}, &tstGrouper{}}, "b(2)"},
|
||||
{"a", []tstGrouper{tstGrouper{}, tstGrouper{}}, "a(2)"},
|
||||
{"a", []*tstGrouper2{&tstGrouper2{}, &tstGrouper2{}}, "a(2)"},
|
||||
{"b", []tstGrouper2{tstGrouper2{}, tstGrouper2{}}, "b(2)"},
|
||||
{"a", []tstGrouper{{}, {}}, "a(2)"},
|
||||
{"a", []*tstGrouper2{{}, {}}, "a(2)"},
|
||||
{"b", []tstGrouper2{{}, {}}, "b(2)"},
|
||||
{"a", []*tstGrouper{}, "a(0)"},
|
||||
{"a", []string{"a", "b"}, false},
|
||||
{"a", "asdf", false},
|
||||
{"a", nil, false},
|
||||
{nil, []*tstGrouper{&tstGrouper{}, &tstGrouper{}}, false},
|
||||
{nil, []*tstGrouper{{}, {}}, false},
|
||||
} {
|
||||
errMsg := fmt.Sprintf("[%d] %v", i, test)
|
||||
|
||||
@@ -654,7 +654,7 @@ func TestSlice(t *testing.T) {
|
||||
{[]interface{}{}, []interface{}{}},
|
||||
{[]interface{}{nil}, []interface{}{nil}},
|
||||
{[]interface{}{5, "b"}, []interface{}{5, "b"}},
|
||||
{[]interface{}{tstNoStringer{}}, []tstNoStringer{tstNoStringer{}}},
|
||||
{[]interface{}{tstNoStringer{}}, []tstNoStringer{{}}},
|
||||
} {
|
||||
errMsg := fmt.Sprintf("[%d] %v", i, test.args)
|
||||
|
||||
|
@@ -749,7 +749,7 @@ func (t *templateHandler) addTemplateFile(name, baseTemplatePath, path string) e
|
||||
}
|
||||
|
||||
var embeddedTemplatesAliases = map[string][]string{
|
||||
"shortcodes/twitter.html": []string{"shortcodes/tweet.html"},
|
||||
"shortcodes/twitter.html": {"shortcodes/tweet.html"},
|
||||
}
|
||||
|
||||
func (t *templateHandler) loadEmbedded() error {
|
||||
|
Reference in New Issue
Block a user