1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-01 00:54:57 +02:00

refactor: use t instead of tt (#2000)

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker
2021-01-07 09:15:32 -03:00
committed by GitHub
parent 49c17befcf
commit 873f35a2c2
8 changed files with 68 additions and 68 deletions

View File

@ -86,7 +86,7 @@ func TestWithDefaults(t *testing.T) {
goBinary: "go",
},
} {
t.Run(name, func(tt *testing.T) {
t.Run(name, func(t *testing.T) {
var config = config.Project{
Builds: []config.Build{
testcase.build,
@ -621,12 +621,12 @@ func TestInvalidTemplate(t *testing.T) {
"{{ .Nope }": `template: tmpl:1: unexpected "}" in operand`,
"{{.Env.NOPE}}": `template: tmpl:1:6: executing "tmpl" at <.Env.NOPE>: map has no entry for key "NOPE"`,
} {
t.Run(template, func(tt *testing.T) {
t.Run(template, func(t *testing.T) {
var ctx = context.New(config.Project{})
ctx.Git.CurrentTag = "3.4.1"
flags, err := tmpl.New(ctx).Apply(template)
require.EqualError(tt, err, eerr)
require.Empty(tt, flags)
require.EqualError(t, err, eerr)
require.Empty(t, flags)
})
}
}