Branch Coverage

blib/lib/Hydrogen/Number.pm
Criterion Covered Total %
branch 44 158 27.8


line true false branch
58 0 1 unless @_ == 1
80 0 1 unless @_ == 2
87 0 1 unless do { &Scalar::Util::looks_like_number($_[0]) if defined $_[0] and not ref $_[0] }
91 1 0 if defined $_[0] and not ref $_[0]
102 0 1 unless do { &Scalar::Util::looks_like_number($_[1]) if defined $_[1] and not ref $_[1] }
106 1 0 if defined $_[1] and not ref $_[1]
122 0 1 unless do { &Scalar::Util::looks_like_number($shv_final_unchecked) if defined $shv_final_unchecked and not ref $shv_final_unchecked }
126 1 0 if defined $shv_final_unchecked and not ref $shv_final_unchecked
156 0 0 unless @_ == 2
163 0 0 unless do { &Scalar::Util::looks_like_number($_[0]) if defined $_[0] and not ref $_[0] }
167 0 0 if defined $_[0] and not ref $_[0]
178 0 0 unless do { &Scalar::Util::looks_like_number($_[1]) if defined $_[1] and not ref $_[1] }
182 0 0 if defined $_[1] and not ref $_[1]
211 0 1 unless @_ == 2
218 0 1 unless do { &Scalar::Util::looks_like_number($_[0]) if defined $_[0] and not ref $_[0] }
222 1 0 if defined $_[0] and not ref $_[0]
233 0 1 unless do { &Scalar::Util::looks_like_number($_[1]) if defined $_[1] and not ref $_[1] }
237 1 0 if defined $_[1] and not ref $_[1]
253 0 1 unless do { &Scalar::Util::looks_like_number($shv_final_unchecked) if defined $shv_final_unchecked and not ref $shv_final_unchecked }
257 1 0 if defined $shv_final_unchecked and not ref $shv_final_unchecked
287 0 0 unless @_ == 2
294 0 0 unless do { &Scalar::Util::looks_like_number($_[0]) if defined $_[0] and not ref $_[0] }
298 0 0 if defined $_[0] and not ref $_[0]
309 0 0 unless do { &Scalar::Util::looks_like_number($_[1]) if defined $_[1] and not ref $_[1] }
313 0 0 if defined $_[1] and not ref $_[1]
342 0 0 unless @_ == 2
349 0 0 unless do { &Scalar::Util::looks_like_number($_[0]) if defined $_[0] and not ref $_[0] }
353 0 0 if defined $_[0] and not ref $_[0]
364 0 0 unless do { &Scalar::Util::looks_like_number($_[1]) if defined $_[1] and not ref $_[1] }
368 0 0 if defined $_[1] and not ref $_[1]
392 0 1 unless @_ == 1
413 0 0 unless @_ == 2
420 0 0 unless do { &Scalar::Util::looks_like_number($_[0]) if defined $_[0] and not ref $_[0] }
424 0 0 if defined $_[0] and not ref $_[0]
435 0 0 unless do { &Scalar::Util::looks_like_number($_[1]) if defined $_[1] and not ref $_[1] }
439 0 0 if defined $_[1] and not ref $_[1]
468 0 0 unless @_ == 2
475 0 0 unless do { &Scalar::Util::looks_like_number($_[0]) if defined $_[0] and not ref $_[0] }
479 0 0 if defined $_[0] and not ref $_[0]
490 0 0 unless do { &Scalar::Util::looks_like_number($_[1]) if defined $_[1] and not ref $_[1] }
494 0 0 if defined $_[1] and not ref $_[1]
523 0 0 unless @_ == 2
530 0 0 unless do { &Scalar::Util::looks_like_number($_[0]) if defined $_[0] and not ref $_[0] }
534 0 0 if defined $_[0] and not ref $_[0]
545 0 0 unless do { &Scalar::Util::looks_like_number($_[1]) if defined $_[1] and not ref $_[1] }
549 0 0 if defined $_[1] and not ref $_[1]
578 0 1 unless @_ == 2
585 0 1 unless do { &Scalar::Util::looks_like_number($_[0]) if defined $_[0] and not ref $_[0] }
589 1 0 if defined $_[0] and not ref $_[0]
600 0 1 unless do { &Scalar::Util::looks_like_number($_[1]) if defined $_[1] and not ref $_[1] }
604 1 0 if defined $_[1] and not ref $_[1]
620 0 1 unless do { &Scalar::Util::looks_like_number($shv_final_unchecked) if defined $shv_final_unchecked and not ref $shv_final_unchecked }
624 1 0 if defined $shv_final_unchecked and not ref $shv_final_unchecked
654 0 1 unless @_ == 2
661 0 1 unless do { &Scalar::Util::looks_like_number($_[0]) if defined $_[0] and not ref $_[0] }
665 1 0 if defined $_[0] and not ref $_[0]
676 0 1 unless do { &Scalar::Util::looks_like_number($_[1]) if defined $_[1] and not ref $_[1] }
680 1 0 if defined $_[1] and not ref $_[1]
696 0 1 unless do { &Scalar::Util::looks_like_number($shv_final_unchecked) if defined $shv_final_unchecked and not ref $shv_final_unchecked }
700 1 0 if defined $shv_final_unchecked and not ref $shv_final_unchecked
730 0 0 unless @_ == 2
737 0 0 unless do { &Scalar::Util::looks_like_number($_[0]) if defined $_[0] and not ref $_[0] }
741 0 0 if defined $_[0] and not ref $_[0]
752 0 0 unless do { &Scalar::Util::looks_like_number($_[1]) if defined $_[1] and not ref $_[1] }
756 0 0 if defined $_[1] and not ref $_[1]
785 0 1 unless @_ == 2
792 0 1 unless do { &Scalar::Util::looks_like_number($_[0]) if defined $_[0] and not ref $_[0] }
796 1 0 if defined $_[0] and not ref $_[0]
807 0 1 unless do { &Scalar::Util::looks_like_number($_[1]) if defined $_[1] and not ref $_[1] }
811 1 0 if defined $_[1] and not ref $_[1]
827 0 1 unless do { &Scalar::Util::looks_like_number($shv_final_unchecked) if defined $shv_final_unchecked and not ref $shv_final_unchecked }
831 1 0 if defined $shv_final_unchecked and not ref $shv_final_unchecked
861 0 1 unless @_ == 2
868 0 1 unless do { &Scalar::Util::looks_like_number($_[0]) if defined $_[0] and not ref $_[0] }
872 1 0 if defined $_[0] and not ref $_[0]
883 0 1 unless do { &Scalar::Util::looks_like_number($_[1]) if defined $_[1] and not ref $_[1] }
887 1 0 if defined $_[1] and not ref $_[1]
903 0 1 unless do { &Scalar::Util::looks_like_number($shv_final_unchecked) if defined $shv_final_unchecked and not ref $shv_final_unchecked }
907 1 0 if defined $shv_final_unchecked and not ref $shv_final_unchecked