mirror of
https://github.com/jackc/pgx.git
synced 2025-05-05 15:10:59 +00:00
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},
|
|
})
|
|
}
|