Branch Coverage

blib/lib/Quantum/Superpositions.pm
Criterion Covered Total %
branch 23 30 76.6


line true false branch
58 2 164 $_[2] ? :
95 11 27 unless $i
97 38 0 $j < @$b ? :
127 0 1 if ($package ne 'CORE') { }
141 0 1 unless eval qq[\n\t\tpackage $package;\n\n\t\tuse subs '${subname}';\n\n\t\tuse Class::Multimethods '${type}';\n\t\tlocal \$SIG{__WARN__} = sub{};\n\n\t\tno strict 'refs';\n\n\t\t*{"${package}::$subname"} =\n\t\tsub\n\t\t{\n\t\t\tlocal \$^W;\n\t\t\treturn \$_[0]->$type(sub{$original(\$_[0])})\n\t\t\t if UNIVERSAL::isa(\$_[0],'Quantum::Superpositions')\n\t\t\t || UNIVERSAL::isa(\$_[1],'Quantum::Superpositions');\n\n\t\t\tno strict 'refs';\n\n\t\t\treturn $original(\$_[0]);\n\t\t};\n\t]
1 0 if UNIVERSAL::isa($_[0], 'Quantum::Superpositions') or UNIVERSAL::isa($_[1], 'Quantum::Superpositions')
173 1 1 if ($package ne 'CORE') { }
186 0 2 unless eval qq[\n\t\tpackage $package;\n\t\tuse subs '${subname}';\n\n\t\tuse Class::Multimethods '${type}';\n\n\t\tlocal \$SIG{__WARN__} = sub{};\n\n\t\tno strict 'refs';\n\n\t\t*{"${package}::$subname"} =\n\t\tsub\n\t\t{\n\t\t\tlocal \$^W;\n\t\t\treturn $type(\@_[0,1],sub{$original(\$_[0],\$_[1])})\n\t\t\t if UNIVERSAL::isa(\$_[0],'Quantum::Superpositions')\n\t\t\t || UNIVERSAL::isa(\$_[1],'Quantum::Superpositions');\n\n\t\t\tno strict 'refs';\n\n\t\t\treturn $original(\$_[0],\$_[1]);\n\t\t};\n\t]
4 3 if UNIVERSAL::isa($_[0], 'Quantum::Superpositions') or UNIVERSAL::isa($_[1], 'Quantum::Superpositions')
2 0 if UNIVERSAL::isa($_[0], 'Quantum::Superpositions') or UNIVERSAL::isa($_[1], 'Quantum::Superpositions')
556 27 46 if defined $eigencache{$eigencache_id}
566 46 57 unless istrue($self eq $_)
592 8 7 $_[0]->eigenstates ? :
609 7 28 if @eigenstates == 1
626 0 22 @eigenstate ? :