Skip to content

Commit 50087af

Browse files
committed
Add additional test coverage for helper functions in Util
Currently helper functions in Util lacks test coverage This commit fixes the following functions by addressing the review feedback. - Added lint comment //nolint:gosec // This is not a hardcoded credential Signed-off-by: Kugamoorthy Gajananan <[email protected]>
1 parent 798b21c commit 50087af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/util/helpers_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ var (
3636

3737
// envLockXdgConfig is a mutex to ensure that all the tests that run os.SetEnv("MINDER_AUTH_TOKEN") need to be prevented from running at the same time as each other.
3838
envLockMinderAuthToken = &sync.Mutex{}
39-
39+
//nolint:gosec // This is not a hardcoded credential
4040
XdgConfigHomeEnvVar = "XDG_CONFIG_HOME"
41-
41+
//nolint:gosec // This is not a hardcoded credential
4242
MinderAuthTokenEnvVar = "MINDER_AUTH_TOKEN"
4343
)
4444

0 commit comments

Comments
 (0)