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