Branch Coverage

blib/lib/Mojar/Cron/Datetime.pm
Criterion Covered Total %
branch 19 26 73.0


line true false branch
34 71 185 if (ref $class) { }
1 184 elsif (@_ == 0) { }
1 183 elsif (@_ == 1) { }
38 0 71 if @_
46 0 1 unless ref($self = shift())
58 10 0 if ($iso_date =~ /^(\d{4})-(\d{2})-(\d{2})(?:T|\s)(\d{2}):(\d{2}):(\d{2})Z?$/)
68 1 170 $is_local ? :
79 0 34 unless ref $original
80 0 34 unless ref $self
98 176 1154 @_ ? :
100 176 1154 if @_
108 0 154 $is_local ? :
114 0 95 if @_ and ref $_[0]