1 package conv 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 8 "github.com/go-openapi/strfmt" 9 ) 10 11 func TestDurationValue(t *testing.T) { 12 assert.Equal(t, strfmt.Duration(0), DurationValue(nil)) 13 duration := strfmt.Duration(42) 14 assert.Equal(t, duration, DurationValue(&duration)) 15 } 16