From 1375afd386fee395b76adf6af45503cecdb5b7ba Mon Sep 17 00:00:00 2001 From: rcourtman Date: Mon, 1 Dec 2025 23:44:04 +0000 Subject: [PATCH] test: Add edge case for coerceUint64 ParseUint error branch String 'abc' without .eE characters triggers ParseUint error path. Coverage: 97.4% to 100%. --- pkg/proxmox/client_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/proxmox/client_test.go b/pkg/proxmox/client_test.go index dab4428..d5e42ce 100644 --- a/pkg/proxmox/client_test.go +++ b/pkg/proxmox/client_test.go @@ -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",