Condition Coverage

blib/lib/Cisco/Regex.pm
Criterion Covered Total %
condition 10 32 31.2


or 2 conditions

line l !l condition
322 0 0 shift() || die("regex(): must specify regex object you're looking for\n")

or 3 conditions

line l !l&&r !l&&!r condition
200 0 1 0 $args{'addr'} || qr/ (?: (?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2}) [.] (?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2}) [.] (?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2}) [.] (?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2}) ) /x
213 0 1 0 $args{'protocol'} || qr/ (?: ahp|eigrp|esp|gre|icmp|igmp|ip|ipinip|nos|ospf|pcp|pim|tcp|udp | (?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2}) ) /x
222 0 1 0 $args{'network'} || qr/ (?:host\s+\S+) | (?:$addr\s+$addr) | any /x
231 0 1 0 $args{'port'} || qr/ (?: 6553[0-5] | 655[0-2]\d | 65[0-4]\d{2} | 6[0-4]\d{3} | [1-5]\d{4} | [1-9]\d{1,3} | \d ) /x
250 0 1 0 $args{'pnames'} || qr/ (?:bgp|chargen|cmd|daytime|discard|domain|drip|echo|exec| finger|ftp|ftp-data|gopher|hostname|ident|irc|klogin| kshell|login|lpd|nntp|pim-auto-rp|pop2|pop3|smtp|sunrpc| tacacs|talk|telnet|time|uucp|whois|www | biff|bootpc|bootps|dnsix|isakmp|mobile-ip|nameserver| netbios-dgm|netbios-ns|netbios-ss|non500-isakmp|ntp|rip| snmp|snmptrap|syslog|tftp|who|xdmcp ) /x
263 0 1 0 $args{'ports'} || qr/ (?:n?eq\s+(?:$port|$pnames)) | (?:range\s+$port\s+$port) | (?:lt\s+(?:$port|$pnames)) | (?:gt\s+(?:$port|$pnames)) | (?:ack|dscp|established|fin|fragments|psh|rst|syn|urg) /x
333 0 0 9 $clean =~ /^no\s+access-list\s+(?:1[0-9][0-9]|2[0-6][0-9]{2})$/ or $clean =~ /^$/
0 0 9 $clean =~ /^no\s+access-list\s+(?:1[0-9][0-9]|2[0-6][0-9]{2})$/ or $clean =~ /^$/ or $clean =~ /^end$/
359 0 0 6 $clean =~ /^no\s+access-list\s+(?:[1-9]?[0-9]|1[3-9][0-9]{2})$/ or $clean =~ /^$/
0 0 6 $clean =~ /^no\s+access-list\s+(?:[1-9]?[0-9]|1[3-9][0-9]{2})$/ or $clean =~ /^$/ or $clean =~ /^end$/