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 TestDateValue(t *testing.T) { 13 assert.Equal(t, strfmt.Date{}, DateValue(nil)) 14 date := strfmt.Date(time.Now()) 15 assert.Equal(t, date, DateValue(&date)) 16 } 17