@@ -172,13 +172,6 @@ func (s *CarbonTypeSuite) TestCarbonType_UnmarshalJSON() {
172172 })
173173}
174174
175- func (s * CarbonTypeSuite ) TestCarbonType_GormDataType () {
176- var model carbonTypeModel
177-
178- s .Equal ("datetime" , model .Carbon1 .GormDataType ())
179- s .Equal ("datetime" , model .Carbon2 .GormDataType ())
180- }
181-
182175type builtinTypeModel struct {
183176 Date Date `json:"date"`
184177 DateMilli DateMilli `json:"date_milli"`
@@ -752,40 +745,8 @@ func (s *BuiltinTypeSuite) TestBuiltinType_UnmarshalJSON() {
752745 })
753746}
754747
755- func (s * BuiltinTypeSuite ) TestBuiltinType_GormDataType () {
756- var model builtinTypeModel
757-
758- s .Equal ("date" , model .Date .GormDataType ())
759- s .Equal ("datetime(6)" , model .DateMilli .GormDataType ())
760- s .Equal ("datetime(6)" , model .DateMicro .GormDataType ())
761- s .Equal ("datetime(6)" , model .DateNano .GormDataType ())
762-
763- s .Equal ("time" , model .Time .GormDataType ())
764- s .Equal ("datetime(6)" , model .TimeMilli .GormDataType ())
765- s .Equal ("datetime(6)" , model .TimeMicro .GormDataType ())
766- s .Equal ("datetime(6)" , model .TimeNano .GormDataType ())
767-
768- s .Equal ("datetime" , model .DateTime .GormDataType ())
769- s .Equal ("datetime(6)" , model .DateTimeMilli .GormDataType ())
770- s .Equal ("datetime(6)" , model .DateTimeMicro .GormDataType ())
771- s .Equal ("datetime(6)" , model .DateTimeNano .GormDataType ())
772-
773- s .Equal ("timestamp" , model .Timestamp .GormDataType ())
774- s .Equal ("timestamp(6)" , model .TimestampMilli .GormDataType ())
775- s .Equal ("timestamp(6)" , model .TimestampMicro .GormDataType ())
776- s .Equal ("timestamp(6)" , model .TimestampNano .GormDataType ())
777-
778- s .Equal ("datetime" , model .CreatedAt .GormDataType ())
779- s .Equal ("datetime" , model .UpdatedAt .GormDataType ())
780- s .Equal ("timestamp" , model .DeletedAt .GormDataType ())
781- s .Equal ("timestamp" , model .DeletedAt .GormDataType ())
782- }
783-
784748type rfc3339Type string
785749
786- func (t rfc3339Type ) DataType () string {
787- return "datetime"
788- }
789750func (t rfc3339Type ) Layout () string {
790751 return RFC3339Layout
791752}
@@ -798,9 +759,6 @@ func (w3cType) Layout() string {
798759
799760type iso8601Type string
800761
801- func (t iso8601Type ) DataType () string {
802- return "datetime"
803- }
804762func (t iso8601Type ) Format () string {
805763 return ISO8601Format
806764}
@@ -1152,14 +1110,3 @@ func (s *CustomerTypeSuite) TestCustomerType_UnmarshalJSON() {
11521110 s .Equal ("2020-08-05T13:14:15Z" , model .UpdatedAt .String ())
11531111 })
11541112}
1155-
1156- func (s * CustomerTypeSuite ) TestCustomerType_GormDataType () {
1157- var model CustomerTypeModel
1158-
1159- s .Equal ("datetime" , model .Customer1 .GormDataType ())
1160- s .Equal ("datetime" , model .Customer2 .GormDataType ())
1161- s .Equal ("datetime" , model .Customer3 .GormDataType ())
1162- s .Equal ("datetime" , model .Customer4 .GormDataType ())
1163- s .Equal ("datetime" , model .CreatedAt .GormDataType ())
1164- s .Equal ("datetime" , model .UpdatedAt .GormDataType ())
1165- }
0 commit comments