Branch Coverage

blib/lib/Gantry/Plugins/Validate.pm
Criterion Covered Total %
branch 0 58 0.0


line true false branch
18 0 0 unless defined $date
20 0 0 unless $date =~ /^\d{1,2}-\d{1,2}-\d{4}$/
24 0 0 unless check_date($year, $month, $day)
35 0 0 unless defined $email
37 0 0 unless $email =~ /\@/
39 0 0 unless $email =~ /\./
50 0 0 unless defined $float
52 0 0 if is_integer($float)
54 0 0 unless $float =~ /^-?\d+\.\d+$/
65 0 0 unless defined $ident
67 0 0 unless is_text($ident)
69 0 0 if $ident =~ /\s/
80 0 0 unless defined $int
82 0 0 unless $int =~ /^-?\d+$/
93 0 0 unless defined $ip
95 0 0 unless $ip =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/
106 0 0 unless defined $mac
109 0 0 unless $mac =~ /^[0-9A-Fa-f:\.\-\ ]+$/m
121 0 0 unless defined $number
123 0 0 if is_integer($number)
125 0 0 if is_float($number)
136 0 0 unless defined $text
138 0 0 if length $text < 1
149 0 0 unless defined $time
151 0 0 unless $time =~ /^\d+:\d+(:\d+)?$/
155 0 0 if $hours < 0 or $hours > 23
156 0 0 if $minutes < 0 or $minutes > 59
158 0 0 if (defined $seconds)
159 0 0 if $seconds < 0 or $seconds > 59