test: ffmpeg processor tests
This commit is contained in:
parent
bb48a1e717
commit
d9c697a0b2
13 changed files with 165 additions and 15 deletions
15
ffmpeg/errors_test.go
Normal file
15
ffmpeg/errors_test.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package ffmpeg
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestErrors(t *testing.T) {
|
||||
assert.Equal(t, "ffmpeg: cannot allocate memory", ErrNoMem.Error())
|
||||
assert.Equal(t, "ffmpeg: end of file", ErrEOF.Error())
|
||||
assert.Equal(t, "ffmpeg: unknown error occurred", ErrUnknown.Error())
|
||||
assert.Equal(t, "ffmpeg: decoder not found", ErrDecoderNotFound.Error())
|
||||
assert.Equal(t, "ffmpeg: invalid data found when processing input", ErrInvalidData.Error())
|
||||
assert.Equal(t, "ffmpeg: video or cover art size exceeds maximum allowed dimensions", ErrTooBig.Error())
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue