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:
parent
678c5aac5f
commit
1375afd386
1 changed files with 7 additions and 0 deletions
|
|
@ -609,6 +609,13 @@ func TestCoerceUint64(t *testing.T) {
|
||||||
value: "1.2.3e4",
|
value: "1.2.3e4",
|
||||||
wantErr: true,
|
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",
|
name: "string quoted null",
|
||||||
field: "test",
|
field: "test",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue