mirror of
https://github.com/PuerkitoBio/goquery.git
synced 2026-10-21 04:47:41 +00:00
Added test for NewDocumentFromResponse with nil response
This commit is contained in:
@@ -151,3 +151,10 @@ func TestNewDocumentFromReader(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestNewDocumentFromResponseNil(t *testing.T) {
|
||||
_, e := NewDocumentFromResponse(nil)
|
||||
if e == nil {
|
||||
t.Error("Expected error, got none")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user