Unit tests added for internal/config

This commit is contained in:
bwilliams committed 2026-10-09 17:07:50 +01:00
1 parent 09644d0691
commit 69620e5f7d
4 files changed
+631

No files matched your search

+2
View File
@@ -142,6 +142,8 @@ func mapOfValue(section reflect.Value) map[string]any {
fv := section.FieldByIndex(f.index)
if f.section {
m[f.key] = mapOfValue(fv)
} else if f.typ == durationType {
m[f.key] = fv.Interface().(time.Duration).String()
} else {
m[f.key] = fv.Interface()
}