test: Add edge case for coerceUint64 ParseUint error branch

String 'abc' without .eE characters triggers ParseUint error path.
Coverage: 97.4% to 100%.
This commit is contained in:
rcourtman 2025-12-01 23:44:04 +00:00
parent 678c5aac5f
commit 1375afd386

View file

@ -609,6 +609,13 @@ func TestCoerceUint64(t *testing.T) {
value: "1.2.3e4",
wantErr: true,
},
// String without .eE that fails ParseUint (covers the ParseUint error branch)
{
name: "string invalid no decimal chars",
field: "test",
value: "abc",
wantErr: true,
},
{
name: "string quoted null",
field: "test",