Branch Coverage

blib/lib/Math/Intersection/Circle/Line.pm
Criterion Covered Total %
branch 95 146 65.0


line true false branch
116 63 109 if &near(scalar($A // 0), $a)
122 6 0 if &near(scalar($A // 0), $a) and &near(scalar($B // 0), $b)
129 21 0 if &near(scalar($A // 0), $a) and &near(scalar($B // 0), $b) and &near(scalar($C // 0), $c)
160 0 5 unless @_ % 2 == 0
161 0 5 unless @_ > 4
179 0 794 unless @_ == 6
180 1 793 if &near($x, $𝘅) and &near($y, $𝘆) or &near($x, $𝕩) and &near($y, $𝕪)
184 0 793 if &near($d, $𝗱) and &near($𝕕)
185 0 793 if &near($d, $𝕕) and &near($𝗱)
186 1 792 if &near($𝗱, $𝕕) and &near($d)
187 702 90 unless &near($d, $𝗱 + $𝕕) or &near($𝗱, $𝕕 + $d)
196 0 219 unless @_ == 4
209 0 102 unless @_ == 4
248 0 695 unless @_ == 7
249 1 82 if &near($x, $𝘅) and &near($y, $𝘆) and &near($r, $𝗿)
254 3 691 if $𝗹 > $r + $𝗿 or $𝗹 < abs $r - $𝗿
259 6 685 if &near($𝗹, $r + $𝗿) or &near($𝗹, abs $r - $𝗿)
283 0 10 unless @_ == 7
284 0 10 if &near($r)
285 0 10 if &near($𝗿)
287 1 9 if $l >= $r + $𝗿
288 5 4 $r < $𝗿 ? :
289 3 6 if $l <= abs $r - $𝗿
316 0 796 unless @_ == 7
317 0 796 if &near($𝘅, $𝕩) and &near($𝘆, $𝕪)
319 11 785 if &near($x, $𝘅) and &near($y, $𝘆) or &near($x, $𝕩) and &near($y, $𝕪)
322 119 666 if &threeCollinearPoints($𝘅, $𝘆, $𝕩, $𝕪, $x, $y)
327 0 666 if @_ == 2
335 0 287 unless @_ == 7
354 0 196 unless @_ == 9
355 0 196 if &near($𝘅, $𝕩) and &near($𝘆, $𝕪)
356 0 196 if &near($𝗫, $𝕏) and &near($𝗬, $𝕐)
357 3 193 if &near(atan2($𝘆 - $𝕪, $𝘅 - $𝕩), atan2($𝗬 - $𝕐, $𝗫 - $𝕏))
366 1 192 if &near($La)
368 0 192 if &near($Lb)
396 0 66 unless @_ == 8
397 1 65 if &near($𝘅, $𝕩) and &near($𝘆, $𝕪)
398 1 64 if (&near($r))
399 1 0 if &threeCollinearPoints($x, $y, $𝘅, $𝘆, $𝕩, $𝕪)
405 11 53 if (&near($x, $X) and &near($y, $Y))
413 2 51 if $𝗗 > $r
414 3 48 if &near($𝗗, $r)
434 0 49 unless @_ == 8
435 0 49 if &near($𝘅, $𝕩) and &near($𝘆, $𝕪)
436 0 49 if &near($r)
439 3 46 if @_ < 4
455 0 46 unless @_ == 7
456 0 46 if &near($x, $𝘅) and &near($y, $𝘆) or &near($𝘅, $𝕩) and &near($𝘆, $𝕪)
472 0 46 unless @_ == 7
473 0 46 if &near($x, $𝘅) and &near($y, $𝘆) or &near($𝘅, $𝕩) and &near($𝘆, $𝕪)
480 0 46 unless &near(@r[0, 1]) and &near(@r[1, 2])
496 0 1 unless @_ == 7
497 0 1 if &near($x, $𝘅) and &near($y, $𝘆) or &near($𝘅, $𝕩) and &near($𝘆, $𝕪)
507 0 1 unless &near(@r[0, 1]) and &near(@r[1, 2])
524 0 24 unless @_ == 7
525 0 24 if &near($x, $𝘅) and &near($y, $𝘆) or &near($𝘅, $𝕩) and &near($𝘆, $𝕪)
539 0 114 unless @_ == 7
540 0 114 if &near($x, $𝘅) and &near($y, $𝘆) or &near($𝘅, $𝕩) and &near($𝘆, $𝕪)
555 0 19 unless @_ == 7
556 0 19 if &near($x, $𝘅) and &near($y, $𝘆) or &near($𝘅, $𝕩) and &near($𝘆, $𝕪)
592 0 22 unless @_ == 7
593 0 22 if &near($x, $𝘅) and &near($y, $𝘆) or &near($𝘅, $𝕩) and &near($𝘆, $𝕪)
608 0 22 unless @_ == 7
609 0 22 if &near($x, $𝘅) and &near($y, $𝘆) or &near($𝘅, $𝕩) and &near($𝘆, $𝕪)
625 0 125 unless @_ == 7
626 12 113 if &near($x, $𝘅) and &near($y, $𝘆) or &near($𝘅, $𝕩) and &near($𝘆, $𝕪)
663 3 3 $𝗿 > 90 ? :
674 0 1 unless @_ == 6
676 1 0 if &near($d, $𝗱)
687 0 2 unless @_ == 6
689 0 2 unless &near($d, $𝗱) or &near($𝗱, $𝕕)
700 0 1 unless @_ == 6
702 0 1 unless &near($d ** 2, $𝗱 ** 2 + $𝕕 ** 2) or &near($𝗱 ** 2, $d ** 2 + $𝕕 ** 2)