Branch Coverage

blib/lib/BSON/Time.pm
Criterion Covered Total %
branch 24 34 70.5


line true false branch
39 6 17908 if ($n == 0) { }
9044 8864 elsif ($n == 1) { }
8864 0 elsif ($n % 2 == 0) { }
40 6 0 if ($BSON::Time::Config{'use64bitint'}) { }
50 1 9043 unless &looks_like_number($_[0])
53 0 9043 if (not $BSON::Time::Config{'use64bitint'} and ref $args{'value'} ne 'Math::BigInt') { }
64 8864 0 if (defined $args{'value'}) { }
66 0 8864 unless &looks_like_number($args{'value'}) or overload::Overloaded($args{'value'})
68 0 8864 if (not $BSON::Time::Config{'use64bitint'} and ref $args{'value'} ne 'Math::BigInt')
73 0 0 if (not $BSON::Time::Config{'use64bitint'} and ref $args{'value'} ne 'Math::BigInt') { }
101 17664 0 if ($BSON::Time::Config{'use64bitint'}) { }
125 3 3 $f ? :
185 0 2 if (ref $other eq ref $self)
193 1 1 if (ref $other eq ref $self)
241 2 22 unless $ENV{'BSON_EXTJSON'}
244 16 6 unless $ENV{'BSON_EXTJSON_RELAXED'}
249 4 2 if ($year >= 1970 and $year <= 9999) { }