all: Format code with gofumpt

See https://github.com/mvdan/gofumpt
This commit is contained in:
Bjørn Erik Pedersen
2020-12-02 13:23:25 +01:00
parent 32471b57bd
commit d90e37e0c6
442 changed files with 1426 additions and 2254 deletions

View File

@@ -44,7 +44,6 @@ func TestTransformRecursiveTemplate(t *testing.T) {
newTestTemplateLookup(ts),
)
ctx.applyTransformations(templ.Tree.Root)
}
func newTestTemplate(templ tpl.Template) *templateState {
@@ -78,7 +77,6 @@ func newTestTemplateLookup(in *templateState) func(name string) *templateState {
}
func TestCollectInfo(t *testing.T) {
configStr := `{ "version": 42 }`
tests := []struct {
@@ -114,11 +112,9 @@ func TestCollectInfo(t *testing.T) {
c.Assert(ctx.t.parseInfo, qt.DeepEquals, test.expected)
})
}
}
func TestPartialReturn(t *testing.T) {
tests := []struct {
name string
tplString string
@@ -159,8 +155,6 @@ func TestPartialReturn(t *testing.T) {
// Just check that it doesn't fail in this test. We have functional tests
// in hugoblib.
c.Assert(err, qt.IsNil)
})
}
}