chore: improve errors and tests

This commit is contained in:
2024-03-23 21:05:57 +00:00
parent 5247fbd90b
commit ccc3668fa2
7 changed files with 262 additions and 30 deletions

View File

@@ -37,6 +37,7 @@ func TestBinary_Render(t *testing.T) {
{
name: "does not implement encoding.BinaryMarshaler",
value: struct{}{},
wantErr: "render: cannot render: struct {}",
wantErrIs: []error{render.Err, render.ErrCannotRender},
},
{