summaryrefslogtreecommitdiffstats
path: root/tpl/tplimpl/template_ast_transformers_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-12-02 13:23:25 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-12-03 13:12:58 +0100
commitd90e37e0c6e812f9913bf256c9c81aa05b7a08aa (patch)
tree7b1b14464eefec1188ca2eed53c64e4823453cc9 /tpl/tplimpl/template_ast_transformers_test.go
parent32471b57bde51c55a15dbf1db75d6e5f7232c347 (diff)
all: Format code with gofumpt
See https://github.com/mvdan/gofumpt
Diffstat (limited to 'tpl/tplimpl/template_ast_transformers_test.go')
-rw-r--r--tpl/tplimpl/template_ast_transformers_test.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/tpl/tplimpl/template_ast_transformers_test.go b/tpl/tplimpl/template_ast_transformers_test.go
index b38446235..56d970b23 100644
--- a/tpl/tplimpl/template_ast_transformers_test.go
+++ b/tpl/tplimpl/template_ast_transformers_test.go
@@ -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)
-
})
}
-
}