Branch Coverage

blib/lib/Time/Timecode.pm
Criterion Covered Total %
branch 46 54 85.1


line true false branch
52 0 79 if @_ < 2 or not defined $_[1]
55 41 38 ref $_[-1] eq 'HASH' ? :
61 1 78 unless $self->{'fps'} =~ /\A\d+(?:\.\d+)?\z/
63 12 66 if (@_ == 1 and not $_[0] =~ /^\d+$/) { }
68 36 30 unless defined $self->{'is_dropframe'}
71 52 14 if (@_ == 1) { }
76 6 8 unless @_ == 4
81 0 75 if ($self->_is_deprecated_dropframe_rate)
102 15 11 if ($format)
138 0 1 if $self->is_dropframe
149 2 2 unless $self->is_dropframe
194 8 14 unless ref $rhs and $rhs->isa('Time::Timecode')
195 3 18 if $reversed
258 0 77 unless $frames =~ /^\d+$/ and $frames >= 0 and $frames <= $max
264 1 230 if not defined $value or $value < 0 or $value > 59
277 77 0 unless (defined $self->{'frames_to_drop'})
278 19 58 $self->is_dropframe ? :
300 1 24 unless $self->_valid_dropframe_timecode
322 0 52 if ($self->_is_deprecated_dropframe_rate)
323 0 0 $self->{'fps'} == 30 ? :
336 49 3 if ($m > $drop) { }
353 26 101 if $self->is_dropframe
371 3 9 if defined $self->{'frame_delimiter'}
374 11 1 if ($timecode =~ /^\s*($TIME_PART)$delim($TIME_PART)$delim($TIME_PART)($frame_delim)([0-5]\d)\s*([NDPF])?\s*$/) { }
376 10 1 unless (defined $self->{'is_dropframe'})
377 5 5 index($DROP_FRAME_DELIMITERS, $4) != -1 ? :
380 9 2 unless defined $self->{'frame_delimiter'}