Removed TextEncoder and BinaryEncoder
Restructured / fixed a lot of tests along the way.
This commit is contained in:
+1
-13
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
func TestBoxCodec(t *testing.T) {
|
||||
testPgxCodec(t, "box", []PgxTranscodeTestCase{
|
||||
testutil.RunTranscodeTests(t, "box", []testutil.TranscodeTestCase{
|
||||
{
|
||||
pgtype.Box{
|
||||
P: [2]pgtype.Vec2{{7.1, 5.2345678}, {3.14, 1.678}},
|
||||
@@ -35,15 +35,3 @@ func TestBoxCodec(t *testing.T) {
|
||||
{nil, new(pgtype.Box), isExpectedEq(pgtype.Box{})},
|
||||
})
|
||||
}
|
||||
|
||||
func TestBoxNormalize(t *testing.T) {
|
||||
testutil.TestSuccessfulNormalize(t, []testutil.NormalizeTest{
|
||||
{
|
||||
SQL: "select '3.14, 1.678, 7.1, 5.234'::box",
|
||||
Value: &pgtype.Box{
|
||||
P: [2]pgtype.Vec2{{7.1, 5.234}, {3.14, 1.678}},
|
||||
Valid: true,
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user