@@ -71,10 +71,10 @@ func TestPgTime_UnmarshalJSON(t *testing.T) {
7171 if err != nil {
7272 t .Fatalf ("unexpected error: %v" , err )
7373 }
74- if tt .isZero && ! v .Time . IsZero () {
74+ if tt .isZero && ! v .IsZero () {
7575 t .Fatalf ("expected zero time, got %v" , v .Time )
7676 }
77- if ! tt .isZero && v .Time . IsZero () {
77+ if ! tt .isZero && v .IsZero () {
7878 t .Fatal ("expected non-zero time, got zero" )
7979 }
8080 })
@@ -89,7 +89,7 @@ func TestPgTime_InStruct(t *testing.T) {
8989 if err := json .Unmarshal ([]byte (raw ), & msg ); err != nil {
9090 t .Fatalf ("unmarshal with null timestamp: %v" , err )
9191 }
92- if ! msg .Timestamp .Time . IsZero () {
92+ if ! msg .Timestamp .IsZero () {
9393 t .Fatalf ("expected zero time for null timestamp, got %v" , msg .Timestamp .Time )
9494 }
9595
@@ -98,11 +98,11 @@ func TestPgTime_InStruct(t *testing.T) {
9898 if err := json .Unmarshal ([]byte (raw ), & msg ); err != nil {
9999 t .Fatalf ("unmarshal with real timestamp: %v" , err )
100100 }
101- if msg .Timestamp .Time . IsZero () {
101+ if msg .Timestamp .IsZero () {
102102 t .Fatal ("expected non-zero time, got zero" )
103103 }
104104 expected := time .Date (2024 , 1 , 15 , 15 , 30 , 0 , 123456000 , time .UTC )
105- if ! msg .Timestamp .Time . Equal (expected ) {
105+ if ! msg .Timestamp .Equal (expected ) {
106106 t .Fatalf ("expected %v, got %v" , expected , msg .Timestamp .Time )
107107 }
108108}
0 commit comments