2
0

Removed TextEncoder and BinaryEncoder

Restructured / fixed a lot of tests along the way.
This commit is contained in:
Jack Christensen
2022-01-22 12:07:35 -06:00
parent eb0a4c9626
commit 3a90c6c879
50 changed files with 295 additions and 758 deletions
+3 -1
View File
@@ -2,6 +2,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func isExpectedEqMap(a interface{}) func(interface{}) bool {
@@ -37,7 +39,7 @@ func TestJSONCodec(t *testing.T) {
Age int `json:"age"`
}
testPgxCodec(t, "json", []PgxTranscodeTestCase{
testutil.RunTranscodeTests(t, "json", []testutil.TranscodeTestCase{
{[]byte("{}"), new([]byte), isExpectedEqBytes([]byte("{}"))},
{[]byte("null"), new([]byte), isExpectedEqBytes([]byte("null"))},
{[]byte("42"), new([]byte), isExpectedEqBytes([]byte("42"))},