mirror of https://github.com/jackc/pgx.git
17 lines
414 B
Go
17 lines
414 B
Go
package pgtype_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/jackc/pgx/pgtype"
|
|
"github.com/jackc/pgx/pgtype/testutil"
|
|
)
|
|
|
|
func TestTIDTranscode(t *testing.T) {
|
|
testutil.TestSuccessfulTranscode(t, "tid", []interface{}{
|
|
&pgtype.TID{BlockNumber: 42, OffsetNumber: 43, Status: pgtype.Present},
|
|
&pgtype.TID{BlockNumber: 4294967295, OffsetNumber: 65535, Status: pgtype.Present},
|
|
&pgtype.TID{Status: pgtype.Null},
|
|
})
|
|
}
|