Branch Coverage

blib/lib/SNMP/Insight/Classifier.pm
Criterion Covered Total %
branch 55 112 49.1


line true false branch
42 0 3 if SNMP::Insight::debug()
48 0 3 unless (defined $services or defined $desc)
49 0 0 if SNMP::Insight::debug()
57 0 3 if SNMP::Insight::debug()
64 0 3 if SNMP::Insight::debug()
80 0 3 if $id =~ /^\.1\.3\.6\.1\.4\.1\.9\.6\.1/
83 3 0 if $vendor eq 'NetSNMP'
91 0 3 unless $desc =~ /\S/o
98 0 3 if $desc =~ /catalyst/i and $desc =~ /\D19\d{2}/
102 0 3 if $desc =~ /(C2900XL|C2950|C3500XL|C2940|CGESM|CIGESM)/i
108 0 3 if $desc =~ /(C3550|C3560|ME340x)/
111 0 3 if $desc =~ /Catalyst 4[05]00/
114 0 3 if $desc =~ /(c6sup2|c6sup1)/
117 0 3 if $desc =~ /(s72033_rp|s3223_rp|s32p3_rp|s222_rp|s2t54)/
121 0 3 if $desc =~ /cisco/i and $desc =~ /CAT3K/
125 0 3 if $desc =~ /(C2970|C2960)/
128 0 3 if $desc =~ /cisco/i and $desc =~ /CBS3[0-9A-Za-z]{3}/
132 0 3 if $desc =~ /cisco/i and $desc =~ /CBS3[0-9A-Za-z]{3}/
136 0 3 if $desc =~ /(C2970|C2960)/
140 0 3 if $desc =~ /cisco/i and $desc =~ /3750/
144 0 3 if $desc =~ /^Cisco\s+NX-OS/
148 0 3 if $desc =~ /WS-C\d{4}/
151 0 3 if $desc =~ /\b(C1100|C1130|C1140|AP1200|C350|C1200|C1240|C1250|C2700|C3700)\b/ and $desc =~ /\bIOS\b/
157 0 3 if $desc =~ /Cisco/ and $desc =~ /\D(BR500|CAP340|AP340|CAP350|350|1200)\D/
161 0 3 if $desc =~ /Aironet/ and $desc =~ /\D(AP4800)\D/
165 0 3 if $desc =~ /^Cisco Controller$/
170 0 3 if $desc =~ /Cisco Adaptive Security Appliance/i
174 0 3 if $desc =~ /Cisco PIX Security Appliance/i
178 0 3 if $desc =~ /Cisco Firewall Services Module/i
186 0 3 if $desc =~ /\b(J4093A|J4110A|J4120A|J4121A|J4122A|J4122B)\b/
190 0 3 if $desc =~ /\b(J4874A|J4138A|J4139A|J4840A|J4841A)\b/
194 0 3 if $desc =~ /HP\sVC\s/
202 0 3 if $desc =~ /Nortel\s+(Networks\s+)??WLAN\s+-\s+Security\s+Switch/
206 0 3 if $desc =~ /^(Nortel\s)??Wireless\sSecurity\sSwitch\s23[568][012]\b/
210 0 3 if $desc =~ /(Passport|Ethernet\s+Routing\s+Switch)-16/i
214 0 3 if $desc =~ /(\bCES\b|\bNVR\sV\d)/
217 0 3 if $desc =~ /^Business Ethernet Switch\s[12]\d\d/i
221 0 3 if $desc =~ /^(BayStack|Ethernet\s+Routing\s+Switch)\s[2345](\d){2,3}/i
225 0 3 if $desc =~ /Business\sPolicy\sSwitch/i
228 0 3 if $desc =~ /Access\s+Point\s+222/
234 0 3 if $desc =~ /Allied.*AT-80\d{2}\S*/i
237 0 3 if $desc =~ /allied/i
240 0 3 if $desc =~ /(ArubaOS|AirOS)/
244 0 3 if $desc =~ /^AOS-W/
247 0 3 if $desc =~ /asante/i
250 0 3 if $desc =~ /\bNMM.*Agent/
252 0 3 if $desc =~ /\bBay\s*Stack.*Hub/i
256 0 3 if $desc =~ /MCP/
259 0 3 if $desc =~ /^IBM Gigabit Ethernet Switch Module$/
263 0 3 if $desc =~ m[^(24|48)-Port 10/100/1000 Gigabit Switch (with |w/)WebView$]
268 0 3 if $desc =~ /foundry/i
271 0 3 if $desc =~ /^DataSMART/i
275 0 3 if $desc =~ /(AP-\d{3}|WavePOINT)/
279 0 3 if $desc =~ /\bNMM\s+(281|3000|3030)/i
283 0 3 if $desc =~ /SonicWALL/i
286 0 3 if $desc =~ /^(avaya|nortel)\s+(SR|secure\srouter)\s+\d{4}/i