...

Source file src/github.com/jackc/pgtype/circle_test.go

Documentation: github.com/jackc/pgtype

     1  package pgtype_test
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/jackc/pgtype"
     7  	"github.com/jackc/pgtype/testutil"
     8  )
     9  
    10  func TestCircleTranscode(t *testing.T) {
    11  	testutil.TestSuccessfulTranscode(t, "circle", []interface{}{
    12  		&pgtype.Circle{P: pgtype.Vec2{1.234, 5.67890123}, R: 3.5, Status: pgtype.Present},
    13  		&pgtype.Circle{P: pgtype.Vec2{-1.234, -5.6789}, R: 12.9, Status: pgtype.Present},
    14  		&pgtype.Circle{Status: pgtype.Null},
    15  	})
    16  }
    17  

View as plain text