Branch Coverage

blib/lib/Crypt/PKCS11.pm
Criterion Covered Total %
branch 53 84 66.6


line true false branch
1604 0 4 unless (defined($$self{'pkcs11xs'} = 'Crypt::PKCS11::XS'->new))
1622 1 1 unless (defined $so)
1627 0 1 $$self{'rv'} == 0 ? :
1634 0 1 $$self{'rv'} == 0 ? :
1641 10 0 if (scalar @_ == 1) { }
1642 1 9 unless (ref $_[0] eq 'HASH')
1651 2 1 if (exists $$args{'CreateMutex'} or exists $$args{'DestroyMutex'} or exists $$args{'LockMutex'} or exists $$args{'UnlockMutex'})
1656 2 1 unless (ref $$args{'CreateMutex'} eq 'CODE' and ref $$args{'DestroyMutex'} eq 'CODE' and ref $$args{'LockMutex'} eq 'CODE' and ref $$args{'UnlockMutex'} eq 'CODE')
1666 0 2 $$self{'rv'} == 0 ? :
1673 0 1 $$self{'rv'} == 0 ? :
1681 0 0 wantarray ? :
0 1 $$self{'rv'} == 0 ? :
1689 0 0 wantarray ? :
0 1 $$self{'rv'} == 0 ? :
1696 1 1 unless (defined $slotID)
1701 0 0 wantarray ? :
0 1 $$self{'rv'} == 0 ? :
1708 1 1 unless (defined $slotID)
1713 0 0 wantarray ? :
0 1 $$self{'rv'} == 0 ? :
1720 1 1 unless (defined $slotID)
1725 0 0 wantarray ? :
0 1 $$self{'rv'} == 0 ? :
1732 1 2 unless (defined $slotID)
1735 1 1 unless (defined $mechanismType)
1740 0 0 wantarray ? :
0 1 $$self{'rv'} == 0 ? :
1747 3 3 if (scalar @_ == 2) { }
1754 2 4 unless (defined $slotID)
1757 1 3 unless (defined $label)
1762 0 3 $$self{'rv'} == 0 ? :
1769 1 2 unless (defined $slotID)
1772 1 1 if (defined $notifycb and ref $notifycb ne 'CODE')
1776 0 1 defined $flags ? :
1777 0 1 $$self{'rv'} == 0 ? :
1783 1 1 unless (defined $slotID)
1788 0 1 $$self{'rv'} == 0 ? :
1795 0 3 defined $flags ? :
1796 1 2 $$self{'rv'} == 0 ? :
1944 0 26 unless ($_[0]->get_mechanism($mechanism) == 0)
1949 0 26 unless ($_[0]->get_pParameter($pParameter) == 0)
1955 1 25 defined $pParameter ? :