6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-07 07:50:40 +00:00

Fix issues found by thelper linter

This commit is contained in:
Grzegorz Dlugoszewski
2025-08-24 17:42:59 +02:00
parent d43ea77025
commit b39f5e63fd
7 changed files with 35 additions and 0 deletions

View File

@@ -86,24 +86,29 @@ func (c *gitconfigValid) Get(key string) string {
}
func testConfigEmpty(t *testing.T) {
t.Helper()
Init(&gitconfigEmpty{})
}
func testConfigOnlyInGitconfig(t *testing.T) {
t.Helper()
Init(&gitconfigValid{})
}
func testConfigOnlyInEnvVar(t *testing.T) {
t.Helper()
Init(&gitconfigEmpty{})
t.Setenv(envVarName, fromEnv)
}
func testConfigInGitconfigAndEnvVar(t *testing.T) {
t.Helper()
Init(&gitconfigValid{})
t.Setenv(envVarName, fromEnv)
}
func testConfigInFlag(t *testing.T) {
t.Helper()
Init(&gitconfigValid{})
t.Setenv(envVarName, fromEnv)