You've already forked nginx_exporter
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user