rename tests

This commit is contained in:
aler9
2021-05-26 20:37:18 +02:00
parent 41eec87259
commit f908a15a1e
13 changed files with 15 additions and 15 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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))

View File

@@ -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))

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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