Skip to content

Commit

Permalink
simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
moukoublen committed Dec 30, 2024
1 parent 2190a8e commit 61a0227
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pgtype/json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,7 @@ func TestJSONCodec(t *testing.T) {
{Issue2146(7), new(*Issue2146), isPtrExpectedEq(Issue2146(7))},

// Test driver.Scanner without pointer receiver (https://github.com/jackc/pgx/issues/2204)
{NonPointerJSONScanner{V: stringPtr("{}")}, NonPointerJSONScanner{V: &str}, func(a any) bool {
if n, is := a.(NonPointerJSONScanner); is {
return *n.V == "{}"
}
return false
}},
{NonPointerJSONScanner{V: stringPtr("{}")}, NonPointerJSONScanner{V: &str}, func(a any) bool { return str == "{}" }},
})

pgxtest.RunValueRoundTripTests(context.Background(), t, defaultConnTestRunner, pgxtest.KnownOIDQueryExecModes, "json", []pgxtest.ValueRoundTripTest{
Expand Down

0 comments on commit 61a0227

Please sign in to comment.