Branch Coverage

blib/lib/Crypt/PKCS11.pm
Criterion Covered Total %
branch 52 82 67.0


line true false branch
1622 0 4 unless (defined($$self{'pkcs11xs'} = 'Crypt::PKCS11::XS'->new))
1640 1 1 unless (defined $so)
1645 0 1 $$self{'rv'} == 0 ? :
1652 0 1 $$self{'rv'} == 0 ? :
1659 9 1 if (scalar @_ == 1) { }
1660 1 8 unless (ref $_[0] eq 'HASH')
1669 2 2 if (exists $$args{'CreateMutex'} or exists $$args{'DestroyMutex'} or exists $$args{'LockMutex'} or exists $$args{'UnlockMutex'})
1678 0 2 $$self{'rv'} == 0 ? :
1685 0 1 $$self{'rv'} == 0 ? :
1693 0 0 wantarray ? :
0 1 $$self{'rv'} == 0 ? :
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 1 unless (defined $slotID)
1737 0 0 wantarray ? :
0 1 $$self{'rv'} == 0 ? :
1744 1 2 unless (defined $slotID)
1747 1 1 unless (defined $mechanismType)
1752 0 0 wantarray ? :
0 1 $$self{'rv'} == 0 ? :
1759 3 3 if (scalar @_ == 2) { }
1766 2 4 unless (defined $slotID)
1769 1 3 unless (defined $label)
1774 0 3 $$self{'rv'} == 0 ? :
1781 1 2 unless (defined $slotID)
1784 1 1 if (defined $notifycb and ref $notifycb ne 'CODE')
1788 0 1 defined $flags ? :
1789 0 1 $$self{'rv'} == 0 ? :
1795 1 1 unless (defined $slotID)
1800 0 1 $$self{'rv'} == 0 ? :
1807 0 3 defined $flags ? :
1808 1 2 $$self{'rv'} == 0 ? :
1956 0 26 unless ($_[0]->get_mechanism($mechanism) == 0)
1961 0 26 unless ($_[0]->get_pParameter($pParameter) == 0)
1967 1 25 defined $pParameter ? :