Branch Coverage

blib/lib/Math/GF.pm
Criterion Covered Total %
branch 34 54 62.9


line true false branch
36 0 3 @_ && ref $_[0] eq 'HASH' ? :
42 0 2 $field->order_is_prime ? :
55 48 6 unless wantarray
65 0 9 unless exists $args{'order'}
67 0 9 unless defined $order
68 0 9 unless $order =~ /\A(?: [2-9] | [1-9]\d+)\z/msx
72 0 9 unless defined $p
77 6 3 if ($n == 1) { }
124 0 3 unless $field->order_is_prime
135 16 13 unless $_ == $zero
143 0 3 unless $field->order_is_prime
152 3 6 if __rabin_irreducibility_test($poly)
155 6 3 unless $_ == $zero
168 0 0 unless @coeffs
187 3 6 if $g->degree > 1
195 0 12 if $x < 2
196 5 7 if $x < 4
199 1 6 if $x == $p
203 0 14 if $x % $p
214 0 16 if $n < 2
217 11 15 if $n % $p
218 6 9 if $first_only
227 0 0 if ($n % $p == 0)
228 0 0 if $first_only
234 0 0 $d == 2 ? :
238 1 9 if $first_only
239 0 9 if $n > 1