refactor!: sizeable changes across the board

This commit is contained in:
2024-03-19 03:54:31 +00:00
parent a1b1ef82ad
commit 7632b1119c
22 changed files with 620 additions and 733 deletions

View File

@@ -89,15 +89,15 @@ func TestXML_Render(t *testing.T) {
{
name: "error from xml.Marshaler",
value: &mockXMLMarshaler{err: errors.New("mock error")},
wantErr: "render: mock error",
wantErrIs: []error{render.Err},
wantErr: "render: failed: mock error",
wantErrIs: []error{render.Err, render.ErrFailed},
},
{
name: "invalid value",
pretty: false,
value: make(chan int),
wantErr: "render: xml: unsupported type: chan int",
wantErrIs: []error{render.Err},
wantErr: "render: failed: xml: unsupported type: chan int",
wantErrIs: []error{render.Err, render.ErrFailed},
},
}