Branch Coverage

blib/lib/Math/ModInt.pm
Criterion Covered Total %
branch 60 60 100.0


line true false branch
46 11 418 if 0.5 != $probe / 2 - ($probe ^ 1) / 2
65 35 289 ref $arg ? :
74 17 8 if ($this->is_defined and $that->is_defined)
82 122 5 if (_is_integer($modulus))
83 11 111 if $modulus > 94906265
84 79 32 if $modulus > 3
85 7 25 if $modulus == 3
86 10 15 if $modulus == 2
87 6 9 if $modulus == 1
94 1 113 unless do { local $@; $loaded{$class} ||= eval "require $class" }
104 9 111 if (not ref $that && $that->isa('Math::ModInt')) { }
13 98 elsif ($this->modulus != $that->modulus) { }
115 6 86 if (not ref $that && $that->isa('Math::ModInt')) { }
4 82 elsif ($this->modulus != $that->modulus) { }
121 3 85 $reversed ? :
126 6 125 if (not ref $that && $that->isa('Math::ModInt')) { }
4 121 elsif ($this->modulus != $that->modulus) { }
137 6 87 if (not ref $that && $that->isa('Math::ModInt')) { }
4 83 elsif ($this->modulus != $that->modulus) { }
143 3 86 $reversed ? :
149 13 186 if ($reversed or not _is_integer($exp))
158 17 658 unless (ref $that and $that->isa('Math::ModInt'))
169 8 12 unless (ref $that and $that->isa('Math::ModInt'))
182 1 2 if (ref $this) { }
219 236 19 if ref $this
225 3 1 if ref $this
241 16 1 if 'Math::ModInt' eq (caller)[0]
250 13 11 $n <= $r ? :
258 7 13 $n < $r ? :
283 21 1 $this->is_defined ? :