Skip to content

Commit

Permalink
fix: remove verbose blank line
Browse files Browse the repository at this point in the history
  • Loading branch information
tr1v3r committed Jan 16, 2024
1 parent 085159c commit 51f1cd3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/template/method.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,12 +421,7 @@ func Test_{{.TargetStruct}}_{{.MethodName}}(t *testing.T) {
for i, tt := range {{.OriginStruct.Type}}{{.MethodName}}TestCase {
t.Run("{{.MethodName}}_"+strconv.Itoa(i), func(t *testing.T) {
{{if .GetTestResultParamInTmpl}}
{{.GetTestResultParamInTmpl}} := do.{{.MethodName}}({{.GetTestParamInTmpl}})
{{.GetAssertInTmpl}}
{{else}}
do.{{.MethodName}}({{.GetTestParamInTmpl}})
{{end}}
{{if .GetTestResultParamInTmpl}}{{.GetTestResultParamInTmpl}} := do.{{.MethodName}}({{.GetTestParamInTmpl}}){{.GetAssertInTmpl}}{{else}}do.{{.MethodName}}({{.GetTestParamInTmpl}}){{end}}
})
}
}
Expand Down

0 comments on commit 51f1cd3

Please sign in to comment.