1
0
mirror of https://github.com/nginxinc/nginx-prometheus-exporter.git synced 2025-08-06 17:42:38 +03:00

Add more linters (#733)

This commit is contained in:
Luca Comellini
2024-06-17 14:39:36 +01:00
committed by GitHub
parent a32ca97271
commit 28771684da
5 changed files with 50 additions and 31 deletions

View File

@@ -112,6 +112,7 @@ func TestParseUnixSocketAddress(t *testing.T) {
}
func TestAddMissingEnvironmentFlags(t *testing.T) {
t.Parallel()
expectedMatches := map[string]string{
"non-matching-flag": "",
"web.missing-env": "MISSING_ENV",
@@ -143,6 +144,7 @@ func TestAddMissingEnvironmentFlags(t *testing.T) {
}
func TestConvertFlagToEnvar(t *testing.T) {
t.Parallel()
cases := []struct {
input string
output string