2
0

Splitting pgtype into own repo

This commit is contained in:
Jack Christensen
2019-04-20 19:14:08 -05:00
parent f25878662d
commit 4ed0de4755
72 changed files with 198 additions and 138 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestACLItemArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestACLItemTranscode(t *testing.T) {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgtype"
)
func TestParseUntypedTextArray(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestBitTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestBoolArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestBoolTranscode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestBoxTranscode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestBPCharArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestChar3Transcode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestByteaArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestByteaTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestCIDTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestCIDRArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestCircleTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestDateArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestDateTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestDaterangeTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestEnumArrayTranscode(t *testing.T) {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
errors "golang.org/x/xerrors"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgtype"
uuid "github.com/satori/go.uuid"
)
+3 -3
View File
@@ -4,9 +4,9 @@ import (
"bytes"
"testing"
"github.com/jackc/pgx/v4/pgtype"
satori "github.com/jackc/pgx/v4/pgtype/ext/satori-uuid"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
satori "github.com/jackc/pgtype/ext/satori-uuid"
"github.com/jackc/pgtype/testutil"
)
func TestUUIDTranscode(t *testing.T) {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
errors "golang.org/x/xerrors"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgtype"
"github.com/shopspring/decimal"
)
+3 -3
View File
@@ -7,9 +7,9 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
shopspring "github.com/jackc/pgx/v4/pgtype/ext/shopspring-numeric"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
shopspring "github.com/jackc/pgtype/ext/shopspring-numeric"
"github.com/jackc/pgtype/testutil"
"github.com/shopspring/decimal"
)
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestFloat4ArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestFloat4Transcode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestFloat8ArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestFloat8Transcode(t *testing.T) {
+11
View File
@@ -0,0 +1,11 @@
module github.com/jackc/pgtype
go 1.12
require (
github.com/jackc/pgio v1.0.0
github.com/jackc/pgx/v4 v4.0.0-20190420224344-cc3461e65d96
github.com/lib/pq v1.1.0
github.com/satori/go.uuid v1.2.0
golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373
)
+49
View File
@@ -0,0 +1,49 @@
github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/jackc/chunkreader v1.0.0 h1:4s39bBR8ByfqH+DKm8rQA3E1LHZWB9XWcrz8fqaZbe0=
github.com/jackc/chunkreader v1.0.0/go.mod h1:RT6O25fNZIuasFJRyZ4R/Y2BbhasbmZXF9QQ7T3kePo=
github.com/jackc/pgconn v0.0.0-20190420214824-7e0022ef6ba3 h1:ZFYpB74Kq8xE9gmfxCmXD6QxZ27ja+j3HwGFc+YurhQ=
github.com/jackc/pgconn v0.0.0-20190420214824-7e0022ef6ba3/go.mod h1:jkELnwuX+w9qN5YIfX0fl88Ehu4XC3keFuOJJk9pcnA=
github.com/jackc/pgio v1.0.0 h1:g12B9UwVnzGhueNavwioyEEpAmqMe1E/BN9ES+8ovkE=
github.com/jackc/pgio v1.0.0/go.mod h1:oP+2QK2wFfUWgr+gxjoBH9KGBb31Eio69xUb0w5bYf8=
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
github.com/jackc/pgproto3 v1.1.0 h1:FYYE4yRw+AgI8wXIinMlNjBbp/UitDJwfj5LqqewP1A=
github.com/jackc/pgproto3 v1.1.0/go.mod h1:eR5FA3leWg7p9aeAqi37XOTgTIbkABlvcPB3E5rlc78=
github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190420180111-c116219b62db h1:UpaKn/gYxzH6/zWyRQH1S260zvKqwJJ4h8+Kf09ooh0=
github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190420180111-c116219b62db/go.mod h1:bhq50y+xrl9n5mRYyCBFKkpRVTLYJVWeCc+mEAI3yXA=
github.com/jackc/pgx/v4 v4.0.0-20190420224344-cc3461e65d96 h1:ylEAOd688Duev/fxTmGdupsbyZfxNMdngIG14DoBKTM=
github.com/jackc/pgx/v4 v4.0.0-20190420224344-cc3461e65d96/go.mod h1:mdxmSJJuR08CZQyj1PVQBHy9XOp5p8/SHH6a0psbY9Y=
github.com/jackc/puddle v0.0.0-20190413234325-e4ced69a3a2b/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
github.com/lib/pq v1.1.0 h1:/5u4a+KGJptBRqGzPvYQL9p0d/tPR4S31+Tnzj9lEO4=
github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU=
github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4=
github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
golang.org/x/crypto v0.0.0-20190411191339-88737f569e3a h1:Igim7XhdOpBnWPuYJ70XcNpq8q3BCACtVgNfoJxOV7g=
golang.org/x/crypto v0.0.0-20190411191339-88737f569e3a/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373 h1:PPwnA7z1Pjf7XYaBP9GL1VAMZmcIWyFz7QCMSIIa3Bg=
golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+2 -2
View File
@@ -5,9 +5,9 @@ import (
"reflect"
"testing"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
)
func TestHstoreArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestHstoreTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestInetArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestInetTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestInt2ArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestInt2Transcode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestInt4ArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestInt4Transcode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestInt4rangeTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestInt8ArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestInt8Transcode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestInt8rangeTranscode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestIntervalTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestJSONTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestJSONBTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestLineTranscode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestLsegTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestMacaddrArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestMacaddrTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestNameTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestNumericArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
// For test purposes only. Note that it does not normalize values. e.g. (Int: 1, Exp: 3) will not equal (Int: 1000, Exp: 0)
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"math/big"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestNumrangeTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestOIDValueTranscode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestPathTranscode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestPointTranscode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestPolygonTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestQCharTranscode(t *testing.T) {
+2 -2
View File
@@ -6,9 +6,9 @@ import (
"reflect"
"testing"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
)
func TestRecordTranscode(t *testing.T) {
+1 -1
View File
@@ -8,8 +8,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgtype"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgtype"
_ "github.com/jackc/pgx/v4/stdlib"
_ "github.com/lib/pq"
)
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestTextArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestTextTranscode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestTIDTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestTimestampArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestTimestampTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestTimestamptzArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestTimestamptzTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestTsrangeTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestTstzrangeTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestUUIDArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"bytes"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestUUIDTranscode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestVarbitTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestVarcharArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
)
func TestXIDTranscode(t *testing.T) {