2020-07-08 08:03:59 +00:00
|
|
|
package meta
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2020-11-21 17:08:41 +00:00
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
2020-07-08 08:03:59 +00:00
|
|
|
)
|
|
|
|
|
2023-07-18 19:23:56 +00:00
|
|
|
func TestData_CodecAvc(t *testing.T) {
|
2020-07-08 08:03:59 +00:00
|
|
|
t.Run("true", func(t *testing.T) {
|
|
|
|
data := Data{
|
|
|
|
Codec: "avc1",
|
|
|
|
}
|
|
|
|
|
2020-12-12 16:20:31 +00:00
|
|
|
assert.Equal(t, true, data.CodecAvc())
|
2020-07-08 08:03:59 +00:00
|
|
|
})
|
|
|
|
t.Run("false", func(t *testing.T) {
|
|
|
|
data := Data{
|
|
|
|
Codec: "heic",
|
|
|
|
}
|
|
|
|
|
2020-12-12 16:20:31 +00:00
|
|
|
assert.Equal(t, false, data.CodecAvc())
|
2020-07-08 08:03:59 +00:00
|
|
|
})
|
|
|
|
}
|