This commit is contained in:
2025-09-30 00:36:46 +01:00
parent 240929a808
commit 013dfa99fd
11 changed files with 387 additions and 56 deletions
+2
View File
@@ -10,6 +10,7 @@ import (
// TestQueryJSONEncoding verifies that the Query struct serializes correctly
// without including the JsonQuery field, preventing "Trailing garbage" errors
func TestQueryJSONEncoding(t *testing.T) {
t.Parallel()
assert := assertions.New(t)
client := CreateTestClient()
@@ -47,6 +48,7 @@ func TestQueryJSONEncoding(t *testing.T) {
// TestQueryJSONEncodingPreventsTrailingGarbage ensures the fix prevents the specific error
func TestQueryJSONEncodingPreventsTrailingGarbage(t *testing.T) {
t.Parallel()
assert := assertions.New(t)
client := CreateTestClient()