mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 14:52:46 +08:00
base: add tests
This commit is contained in:
@@ -177,9 +177,17 @@ func TestRequestReadErrors(t *testing.T) {
|
||||
"missing eol",
|
||||
[]byte("GET rtsp://testing123/test RTSP/1.0"),
|
||||
},
|
||||
{
|
||||
"empty method",
|
||||
[]byte(" rtsp://testing123 RTSP/1.0\r\n"),
|
||||
},
|
||||
{
|
||||
"empty URL",
|
||||
[]byte("GET http://testing123 RTSP/1.0\r\n"),
|
||||
[]byte("GET RTSP/1.0\r\n"),
|
||||
},
|
||||
{
|
||||
"empty protocol",
|
||||
[]byte("GET http://testing123 \r\n"),
|
||||
},
|
||||
{
|
||||
"invalid URL",
|
||||
|
Reference in New Issue
Block a user