Branch Coverage

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


line true false branch
39 6 17037 if ($n == 0) { }
8580 8457 elsif ($n == 1) { }
8457 0 elsif ($n % 2 == 0) { }
40 6 0 if ($BSON::Time::Config{'use64bitint'}) { }
50 1 8579 unless &looks_like_number($_[0])
53 0 8579 if (not $BSON::Time::Config{'use64bitint'} and ref $args{'value'} ne 'Math::BigInt') { }
64 8457 0 if (defined $args{'value'}) { }
66 0 8457 unless &looks_like_number($args{'value'}) or overload::Overloaded($args{'value'})
68 0 8457 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 16850 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) { }