config updated to improve setting values, writing changes and test coverage

This commit is contained in:
bwilliams committed 2026-10-13 13:19:01 +01:00
1 parent 8f0e72821f
commit 169c6c6b64
8 files changed
+453 -59

No files matched your search

+9
View File
@@ -301,3 +301,12 @@ func TestSetValueValidator(t *testing.T) {
t.Errorf("nested setValue(bad) = %v; want errRejected", err)
}
}
// parseString handles string fields too, although convert assigns a string
// to a string field before reaching it.
func TestParseStringString(t *testing.T) {
v, err := parseString("text", reflect.TypeOf(""))
if err != nil || v.Interface() != "text" {
t.Errorf("parseString(text, string) = %v, %v", v, err)
}
}