mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 23:02:45 +08:00
base: improve coverage
This commit is contained in:
@@ -242,11 +242,11 @@ func TestRequestWriteErrors(t *testing.T) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"header",
|
"header",
|
||||||
20,
|
53,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"body",
|
"body",
|
||||||
40,
|
62,
|
||||||
},
|
},
|
||||||
} {
|
} {
|
||||||
t.Run(ca.name, func(t *testing.T) {
|
t.Run(ca.name, func(t *testing.T) {
|
||||||
|
@@ -195,15 +195,15 @@ func TestResponseWriteErrors(t *testing.T) {
|
|||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
"first line",
|
"first line",
|
||||||
3,
|
14,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"header",
|
"header",
|
||||||
20,
|
21,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"body",
|
"body",
|
||||||
40,
|
30,
|
||||||
},
|
},
|
||||||
} {
|
} {
|
||||||
t.Run(ca.name, func(t *testing.T) {
|
t.Run(ca.name, func(t *testing.T) {
|
||||||
|
Reference in New Issue
Block a user