mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-05 15:46:58 +08:00
17 lines
397 B
Go
17 lines
397 B
Go
package hls
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/bluenviron/gohlslib/v2"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestToStreamNoSupportedCodecs(t *testing.T) {
|
|
_, err := ToStream(nil, []*gohlslib.Track{}, nil)
|
|
require.Equal(t, ErrNoSupportedCodecs, err)
|
|
}
|
|
|
|
// this is impossible to test since currently we support all gohlslib.Tracks.
|
|
// func TestToStreamSkipUnsupportedTracks(t *testing.T)
|