Branch Coverage

blib/lib/Passwd/Keyring/Auto/Chooser.pm
Criterion Covered Total %
branch 18 44 40.9


line true false branch
34 4 4 unless ($arg_name =~ /^(app|group|config|force|prefer|forbid)$/)
51 0 4 $ENV{'PASSWD_KEYRING_DEBUG'} ? :
67 0 4 if ($debug)
75 0 4 if ($force)
77 0 0 if $keyring
94 0 4 unless (ref $forbid)
97 0 4 unless (ref $prefer)
101 0 4 if ($debug)
104 0 4 if ($debug)
124 0 4 if ($^O eq 'darwin')
128 0 4 if ($ENV{'DISPLAY'} or $ENV{'DESKTOP_SESSION'})
133 0 4 if ($ENV{'GNOME_KEYRING_CONTROL'})
137 0 4 if ($ENV{'DBUS_SESSION_BUS_ADDRESS'})
151 0 0 unless $candidates{$b} <=> $candidates{$a}
156 0 4 if ($debug)
163 0 4 if $keyring
172 0 0 if (exists $ENV{$full_name})
185 0 4 unless ($backend_name =~ /^[A-Za-z][A-Za-z0-9_]*$/)
186 0 0 if ($debug)
202 0 4 if ($debug)
209 0 4 if ($debug)
210 0 0 if (not $@) { }