Skip to content
This repository was archived by the owner on Feb 17, 2023. It is now read-only.

Commit e25e612

Browse files
committed
tests: more robots
1 parent 0319fcf commit e25e612

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

all_test.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,26 @@ var uastrings = []struct {
6262
ua: "Facebot",
6363
expected: "Browser:Facebot Bot:true Mobile:false",
6464
},
65+
{
66+
title: "NutchCVS",
67+
ua: "NutchCVS/0.8-dev (Nutch; http://lucene.apache.org/nutch/bot.html; [email protected])",
68+
expected: "Browser:NutchCVS Bot:true Mobile:false",
69+
},
70+
{
71+
title: "MJ12bot",
72+
ua: "Mozilla/5.0 (compatible; MJ12bot/v1.2.4; http://www.majestic12.co.uk/bot.php?+)",
73+
expected: "Mozilla:5.0 Browser:MJ12bot-v1.2.4 Bot:true Mobile:false",
74+
},
75+
{
76+
title: "MJ12bot",
77+
ua: "MJ12bot/v1.0.8 (http://majestic12.co.uk/bot.php?+)",
78+
expected: "Browser:MJ12bot Bot:true Mobile:false",
79+
},
80+
{
81+
title: "AhrefsBot",
82+
ua: "Mozilla/5.0 (compatible; AhrefsBot/4.0; +http://ahrefs.com/robot/)",
83+
expected: "Mozilla:5.0 Browser:AhrefsBot-4.0 Bot:true Mobile:false",
84+
},
6585

6686
// Internet Explorer
6787
{

0 commit comments

Comments
 (0)