mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 23:02:45 +08:00
rename tests
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
|||||||
"github.com/aler9/gortsplib/pkg/base"
|
"github.com/aler9/gortsplib/pkg/base"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSenderError(t *testing.T) {
|
func TestSenderErrors(t *testing.T) {
|
||||||
for _, ca := range []struct {
|
for _, ca := range []struct {
|
||||||
name string
|
name string
|
||||||
hv base.HeaderValue
|
hv base.HeaderValue
|
||||||
|
@@ -8,7 +8,7 @@ import (
|
|||||||
"github.com/aler9/gortsplib/pkg/base"
|
"github.com/aler9/gortsplib/pkg/base"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestValidatorError(t *testing.T) {
|
func TestValidatorErrors(t *testing.T) {
|
||||||
for _, ca := range []struct {
|
for _, ca := range []struct {
|
||||||
name string
|
name string
|
||||||
hv base.HeaderValue
|
hv base.HeaderValue
|
||||||
|
@@ -143,7 +143,7 @@ func TestReadInterleavedFrameOrRequest(t *testing.T) {
|
|||||||
require.Equal(t, &f, out)
|
require.Equal(t, &f, out)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestReadInterleavedFrameOrRequestError(t *testing.T) {
|
func TestReadInterleavedFrameOrRequestErrors(t *testing.T) {
|
||||||
for _, ca := range []struct {
|
for _, ca := range []struct {
|
||||||
name string
|
name string
|
||||||
byts []byte
|
byts []byte
|
||||||
@@ -198,7 +198,7 @@ func TestReadInterleavedFrameOrResponse(t *testing.T) {
|
|||||||
require.Equal(t, &f, out)
|
require.Equal(t, &f, out)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestReadInterleavedFrameOrResponseError(t *testing.T) {
|
func TestReadInterleavedFrameOrResponseErrors(t *testing.T) {
|
||||||
for _, ca := range []struct {
|
for _, ca := range []struct {
|
||||||
name string
|
name string
|
||||||
byts []byte
|
byts []byte
|
||||||
|
@@ -279,7 +279,7 @@ func TestRequestReadIgnoreFrames(t *testing.T) {
|
|||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRequestReadIgnoreFramesError(t *testing.T) {
|
func TestRequestReadIgnoreFramesErrors(t *testing.T) {
|
||||||
byts := []byte{0x25}
|
byts := []byte{0x25}
|
||||||
|
|
||||||
rb := bufio.NewReader(bytes.NewBuffer(byts))
|
rb := bufio.NewReader(bytes.NewBuffer(byts))
|
||||||
|
@@ -264,7 +264,7 @@ func TestResponseReadIgnoreFrames(t *testing.T) {
|
|||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestResponseReadIgnoreFramesError(t *testing.T) {
|
func TestResponseReadIgnoreFramesErrors(t *testing.T) {
|
||||||
byts := []byte{0x25}
|
byts := []byte{0x25}
|
||||||
|
|
||||||
rb := bufio.NewReader(bytes.NewBuffer(byts))
|
rb := bufio.NewReader(bytes.NewBuffer(byts))
|
||||||
|
@@ -14,7 +14,7 @@ func mustParseURL(s string) *URL {
|
|||||||
return u
|
return u
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestURLError(t *testing.T) {
|
func TestURLErrors(t *testing.T) {
|
||||||
for _, ca := range []struct {
|
for _, ca := range []struct {
|
||||||
name string
|
name string
|
||||||
enc string
|
enc string
|
||||||
|
@@ -192,7 +192,7 @@ func TestAuthenticateWrite(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestAutenticatehReadError(t *testing.T) {
|
func TestAutenticatehReadErrors(t *testing.T) {
|
||||||
for _, ca := range []struct {
|
for _, ca := range []struct {
|
||||||
name string
|
name string
|
||||||
hv base.HeaderValue
|
hv base.HeaderValue
|
||||||
|
@@ -69,7 +69,7 @@ func TestAuthorizationWrite(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestAuthorizationReadError(t *testing.T) {
|
func TestAuthorizationReadErrors(t *testing.T) {
|
||||||
for _, ca := range []struct {
|
for _, ca := range []struct {
|
||||||
name string
|
name string
|
||||||
hv base.HeaderValue
|
hv base.HeaderValue
|
||||||
|
@@ -85,7 +85,7 @@ func TestKeyValParse(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestKeyValParseError(t *testing.T) {
|
func TestKeyValParseErrors(t *testing.T) {
|
||||||
for _, ca := range []struct {
|
for _, ca := range []struct {
|
||||||
name string
|
name string
|
||||||
s string
|
s string
|
||||||
|
@@ -187,7 +187,7 @@ func TestRTPInfoWrite(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRTPInfoReadError(t *testing.T) {
|
func TestRTPInfoReadErrors(t *testing.T) {
|
||||||
for _, ca := range []struct {
|
for _, ca := range []struct {
|
||||||
name string
|
name string
|
||||||
hv base.HeaderValue
|
hv base.HeaderValue
|
||||||
|
@@ -68,7 +68,7 @@ func TestSessionWrite(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSessionReadError(t *testing.T) {
|
func TestSessionReadErrors(t *testing.T) {
|
||||||
for _, ca := range []struct {
|
for _, ca := range []struct {
|
||||||
name string
|
name string
|
||||||
hv base.HeaderValue
|
hv base.HeaderValue
|
||||||
|
@@ -154,7 +154,7 @@ func TestTransportWrite(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestTransportReadError(t *testing.T) {
|
func TestTransportReadErrors(t *testing.T) {
|
||||||
for _, ca := range []struct {
|
for _, ca := range []struct {
|
||||||
name string
|
name string
|
||||||
hv base.HeaderValue
|
hv base.HeaderValue
|
||||||
|
@@ -340,7 +340,7 @@ func TestTrackH264Extract(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestTrackH264ExtractError(t *testing.T) {
|
func TestTrackH264ExtractErrors(t *testing.T) {
|
||||||
for _, ca := range []struct {
|
for _, ca := range []struct {
|
||||||
name string
|
name string
|
||||||
track *Track
|
track *Track
|
||||||
@@ -652,7 +652,7 @@ func TestTrackAACExtract(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestTrackAACExtractError(t *testing.T) {
|
func TestTrackAACExtractErrors(t *testing.T) {
|
||||||
for _, ca := range []struct {
|
for _, ca := range []struct {
|
||||||
name string
|
name string
|
||||||
track *Track
|
track *Track
|
||||||
|
Reference in New Issue
Block a user