mirror of
https://github.com/xfrr/goffmpeg.git
synced 2025-09-26 19:01:19 +08:00

* cleanup readme & examples * upgrade go version * add makefile with basic commands * add e2e test * add gha * update .gitignore
19 lines
359 B
Go
19 lines
359 B
Go
package goffmpeg
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestConfigure(t *testing.T) {
|
|
t.Run("Should set the correct command", func(t *testing.T) {
|
|
ctx := context.Background()
|
|
cfg, err := Configure(ctx)
|
|
assert.Nil(t, err)
|
|
assert.NotEmpty(t, cfg.FFmpegBinPath())
|
|
assert.NotEmpty(t, cfg.FFprobeBinPath())
|
|
})
|
|
}
|