mirror of https://github.com/jackc/pgx.git
simplify test
parent
2190a8e0d1
commit
61a0227241
|
@ -68,12 +68,7 @@ func TestJSONCodec(t *testing.T) {
|
||||||
{Issue2146(7), new(*Issue2146), isPtrExpectedEq(Issue2146(7))},
|
{Issue2146(7), new(*Issue2146), isPtrExpectedEq(Issue2146(7))},
|
||||||
|
|
||||||
// Test driver.Scanner without pointer receiver (https://github.com/jackc/pgx/issues/2204)
|
// Test driver.Scanner without pointer receiver (https://github.com/jackc/pgx/issues/2204)
|
||||||
{NonPointerJSONScanner{V: stringPtr("{}")}, NonPointerJSONScanner{V: &str}, func(a any) bool {
|
{NonPointerJSONScanner{V: stringPtr("{}")}, NonPointerJSONScanner{V: &str}, func(a any) bool { return str == "{}" }},
|
||||||
if n, is := a.(NonPointerJSONScanner); is {
|
|
||||||
return *n.V == "{}"
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
pgxtest.RunValueRoundTripTests(context.Background(), t, defaultConnTestRunner, pgxtest.KnownOIDQueryExecModes, "json", []pgxtest.ValueRoundTripTest{
|
pgxtest.RunValueRoundTripTests(context.Background(), t, defaultConnTestRunner, pgxtest.KnownOIDQueryExecModes, "json", []pgxtest.ValueRoundTripTest{
|
||||||
|
|
Loading…
Reference in New Issue