mirror of https://github.com/jackc/pgx.git
16 lines
362 B
Go
16 lines
362 B
Go
package pgtype_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/jackc/pgx/pgtype"
|
|
)
|
|
|
|
func TestTidTranscode(t *testing.T) {
|
|
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},
|
|
})
|
|
}
|