mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
Some checks are pending
code_lint / go (push) Waiting to run
code_lint / go_mod (push) Waiting to run
code_lint / docs (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_e2e (push) Waiting to run
18 lines
398 B
Go
18 lines
398 B
Go
package rtmp
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/bluenviron/gortmplib"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestToStreamNoSupportedCodecs(t *testing.T) {
|
|
r := &gortmplib.Reader{}
|
|
|
|
_, err := ToStream(r, nil)
|
|
require.Equal(t, errNoSupportedCodecsTo, err)
|
|
}
|
|
|
|
// this is impossible to test since currently we support all RTMP tracks.
|
|
// func TestToStreamSkipUnsupportedTracks(t *testing.T)
|