fix: tighten reflect usage in pdh and textfile (#2517)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2026-10-07 18:28:33 +02:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 453506f3b8
commit 7ee3b0fb9b
6 changed files with 42 additions and 10 deletions
+2 -2
View File
@@ -18,7 +18,7 @@
package config
import (
"reflect"
"maps"
"testing"
"go.yaml.in/yaml/v3"
@@ -49,7 +49,7 @@ func TestConfigFlattening(t *testing.T) {
}
flattenedValues := flatten(data)
if !reflect.DeepEqual(expectedResult, flattenedValues) {
if !maps.Equal(expectedResult, flattenedValues) {
t.Errorf("Flattened values do not match!\nExpected result: %s\nActual result: %s", expectedResult, flattenedValues)
}
}