feat(go)!: upgrade to Go 1.17 (from 1.15) (#6)

BREAKING CHANGE: Go 1.17 or later is now required, up from Go 1.15.
This commit is contained in:
2025-03-22 01:37:06 +00:00
committed by GitHub
parent f5a03af9ce
commit 85ae6e9ae3
5 changed files with 35 additions and 22 deletions

View File

@@ -3,7 +3,6 @@ package golden
import (
"testing"
"github.com/jimeh/envctl"
"github.com/stretchr/testify/assert"
)
@@ -96,11 +95,13 @@ var envUpdateFuncTestCases = []struct {
func TestEnvUpdateFunc(t *testing.T) {
for _, tt := range envUpdateFuncTestCases {
t.Run(tt.name, func(t *testing.T) {
envctl.WithClean(tt.env, func() {
got := EnvUpdateFunc()
for k, v := range tt.env {
t.Setenv(k, v)
}
assert.Equal(t, tt.want, got)
})
got := EnvUpdateFunc()
assert.Equal(t, tt.want, got)
})
}
}