aboutsummaryrefslogtreecommitdiff
path: root/deadlinks_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'deadlinks_test.go')
-rw-r--r--deadlinks_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/deadlinks_test.go b/deadlinks_test.go
index 4269e5d..fc088b5 100644
--- a/deadlinks_test.go
+++ b/deadlinks_test.go
@@ -94,6 +94,12 @@ func TestDeadLinks_Scan(t *testing.T) {
}, {
Link: testUrl + `/brokenPage`,
Code: http.StatusNotFound,
+ }, {
+ Link: `http://127.0.0.1:abc`,
+ Code: 700,
+ }, {
+ Link: `http:/127.0.0.1:11836`,
+ Code: http.StatusNotFound,
}},
testUrl + `/broken.html`: []deadlinks.Broken{{
Link: testUrl + `/brokenPage`,
@@ -119,6 +125,12 @@ func TestDeadLinks_Scan(t *testing.T) {
}, {
Link: testUrl + `/brokenPage`,
Code: http.StatusNotFound,
+ }, {
+ Link: `http://127.0.0.1:abc`,
+ Code: 700,
+ }, {
+ Link: `http:/127.0.0.1:11836`,
+ Code: http.StatusNotFound,
}},
testUrl + `/broken.html`: []deadlinks.Broken{{
Link: testUrl + `/brokenPage`,