1 package conv 2 3 import ( 4 "testing" 5 "time" 6 7 "github.com/stretchr/testify/assert" 8 9 "github.com/go-openapi/strfmt" 10 ) 11 12 func TestDateTimeValue(t *testing.T) { 13 assert.Equal(t, strfmt.DateTime{}, DateTimeValue(nil)) 14 time := strfmt.DateTime(time.Now()) 15 assert.Equal(t, time, DateTimeValue(&time)) 16 } 17