Branch Coverage

blib/lib/Time/Timecode.pm
Criterion Covered Total %
branch 37 42 88.1


line true false branch
48 0 53 if @_ < 2 or not defined $_[1]
51 27 26 UNIVERSAL::isa($_[-1], 'HASH') ? :
57 0 53 unless $$self{'_fps'} =~ /^\d+(?:\.\d+)?$/
59 11 42 if (@_ == 1 and not $_[0] =~ /^\d+$/) { }
67 31 11 if (@_ == 1) { }
71 5 6 unless @_ == 4
110 0 1 if $self->is_dropframe
121 1 2 unless $self->is_dropframe
162 6 4 unless UNIVERSAL::isa($rhs, 'Time::Timecode')
163 2 7 if $reversed
186 34 142 if $self->is_dropframe
195 24 90 if $self->is_dropframe
204 29 116 if $self->is_dropframe
249 0 52 unless $frames =~ /^\d+$/ and $frames >= 0 and $frames <= $max
255 1 155 if not defined $value or $value < 0 or $value > 59
283 1 20 unless $self->_valid_dropframe_timecode
303 0 30 unless $self->_valid_dropframe_timecode
320 3 8 if defined $$self{'_frame_delimiter'}
323 10 1 if ($timecode =~ /^\s*($TIME_PART)$delim($TIME_PART)$delim($TIME_PART)($frame_delim)([0-5]\d)\s*([NDPF])?\s*$/) { }
325 5 5 unless defined $$self{'_is_dropframe'} or index($DROP_FRAME_DELIMITERS, $4) == -1
326 8 2 unless defined $$self{'_frame_delimiter'}