chore: enable more linter (#1557)

This commit is contained in:
Jan-Otto Kröpke
2024-08-10 22:05:33 +02:00
committed by GitHub
parent 27a3553dac
commit 9b02e4a0ea
87 changed files with 337 additions and 494 deletions

View File

@@ -11,6 +11,8 @@ import (
)
func TestExpandChildCollectors(t *testing.T) {
t.Parallel()
cases := []struct {
name string
input string
@@ -30,6 +32,8 @@ func TestExpandChildCollectors(t *testing.T) {
for _, c := range cases {
t.Run(c.name, func(t *testing.T) {
t.Parallel()
output := utils.ExpandEnabledChildCollectors(c.input)
if !reflect.DeepEqual(output, c.expectedOutput) {
t.Errorf("Output mismatch, expected %+v, got %+v", c.expectedOutput, output)
@@ -39,6 +43,8 @@ func TestExpandChildCollectors(t *testing.T) {
}
func TestExpandEnabled(t *testing.T) {
t.Parallel()
expansionTests := []struct {
input string
expectedOutput []string