Commit Graph

7 Commits (db23986b718c8e56e23ae9f295dc8ae9fd808db7)

Author SHA1 Message Date
Matthieu MOREL 431dd63e80 enable all go-critic
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 month ago
Matthieu MOREL a5e496769c chore: enable begin rule from thelper
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
4 months ago
Matthieu MOREL 8c1a718a5d chore: use testify instead of testing
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
4 months ago
shirou bc060cc227 add SPDX License, remove old build tag, and replace import 1 year ago
Eng Zer Jun 37894e9b28
test: use `T.Setenv` to set env vars in tests
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
3 years ago
mmorel-35 1e6b445a8a gofumpt 4 years ago
shirou 0969c9436b delete v2 directory, move v3 to top #1078 4 years ago