Branch Coverage

blib/lib/Gantry/Utils/Validate.pm
Criterion Covered Total %
branch 0 54 0.0


line true false branch
26 0 0 unless defined $date
28 0 0 unless $date =~ /^\d{1,2}-\d{1,2}-\d{4}$/
32 0 0 unless check_date($year, $month, $day)
43 0 0 if (&Mail::RFC822::Address::valid($email))
56 0 0 unless defined $float
58 0 0 if $self->is_integer($float)
60 0 0 unless $float =~ /^-?\d+\.\d+$/
71 0 0 unless defined $ident
73 0 0 unless $self->is_text($ident)
75 0 0 if $ident =~ /\s/
86 0 0 unless defined $int
88 0 0 unless $int =~ /^-?\d+$/
99 0 0 unless defined $ip
101 0 0 unless $ip =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/
112 0 0 unless defined $mac
115 0 0 unless $mac =~ /^[0-9A-Fa-f:\.\-\ ]+$/m
127 0 0 unless defined $number
129 0 0 if $self->is_integer($number)
131 0 0 if $self->is_float($number)
142 0 0 unless defined $text
144 0 0 if length $text < 1
155 0 0 unless defined $time
157 0 0 unless $time =~ /^\d+:\d+(:\d+)?$/
161 0 0 if $hours < 0 or $hours > 23
162 0 0 if $minutes < 0 or $minutes > 59
164 0 0 if (defined $seconds)
165 0 0 if $seconds < 0 or $seconds > 59