@@ -846,7 +846,7 @@ func TestNullableAttr_Time(t *testing.T) {
846
846
desc : "time_null" ,
847
847
input : & WithNullableAttrs {
848
848
ID : 5 ,
849
- RFC3339Time : NullTime (),
849
+ RFC3339Time : NewNullNullableAttr [time. Time ] (),
850
850
},
851
851
verification : func (root map [string ]interface {}) error {
852
852
v := root ["data" ].(map [string ]interface {})["attributes" ].(map [string ]interface {})["rfc3339_time" ]
@@ -860,7 +860,7 @@ func TestNullableAttr_Time(t *testing.T) {
860
860
desc : "time_not_null_rfc3339" ,
861
861
input : & WithNullableAttrs {
862
862
ID : 5 ,
863
- RFC3339Time : NullableTime (aTime ),
863
+ RFC3339Time : NewNullableAttrWithValue [time. Time ] (aTime ),
864
864
},
865
865
verification : func (root map [string ]interface {}) error {
866
866
v := root ["data" ].(map [string ]interface {})["attributes" ].(map [string ]interface {})["rfc3339_time" ].(string )
@@ -874,7 +874,7 @@ func TestNullableAttr_Time(t *testing.T) {
874
874
desc : "time_not_null_iso8601" ,
875
875
input : & WithNullableAttrs {
876
876
ID : 5 ,
877
- ISO8601Time : NullableTime (aTime ),
877
+ ISO8601Time : NewNullableAttrWithValue [time. Time ] (aTime ),
878
878
},
879
879
verification : func (root map [string ]interface {}) error {
880
880
v := root ["data" ].(map [string ]interface {})["attributes" ].(map [string ]interface {})["iso8601_time" ].(string )
@@ -888,7 +888,7 @@ func TestNullableAttr_Time(t *testing.T) {
888
888
desc : "time_not_null_int" ,
889
889
input : & WithNullableAttrs {
890
890
ID : 5 ,
891
- IntTime : NullableTime (aTime ),
891
+ IntTime : NewNullableAttrWithValue [time. Time ] (aTime ),
892
892
},
893
893
verification : func (root map [string ]interface {}) error {
894
894
v := root ["data" ].(map [string ]interface {})["attributes" ].(map [string ]interface {})["int_time" ].(float64 )
@@ -941,7 +941,7 @@ func TestNullableAttr_Bool(t *testing.T) {
941
941
desc : "bool_null" ,
942
942
input : & WithNullableAttrs {
943
943
ID : 5 ,
944
- Bool : NullBool (),
944
+ Bool : NewNullNullableAttr [ bool ] (),
945
945
},
946
946
verification : func (root map [string ]interface {}) error {
947
947
v := root ["data" ].(map [string ]interface {})["attributes" ].(map [string ]interface {})["bool" ]
@@ -955,7 +955,7 @@ func TestNullableAttr_Bool(t *testing.T) {
955
955
desc : "bool_not_null" ,
956
956
input : & WithNullableAttrs {
957
957
ID : 5 ,
958
- Bool : NullableBool (aBool ),
958
+ Bool : NewNullableAttrWithValue [ bool ] (aBool ),
959
959
},
960
960
verification : func (root map [string ]interface {}) error {
961
961
v := root ["data" ].(map [string ]interface {})["attributes" ].(map [string ]interface {})["bool" ].(bool )
0 commit comments