Branch Coverage

blib/lib/GitHub/Config/SSH/UserData.pm
Criterion Covered Total %
branch 13 16 81.2


line true false branch
19 0 9 if not @_ or @_ > 2
22 0 9 if ref $user_name
23 0 9 if ref $config_file
29 31 129 if ($line =~ /^Host\s+github-(\S+)\s*$/)
31 1 30 if exists $seen{$current_user_name}
33 23 7 if $current_user_name ne $user_name
35 2 5 unless $line =~ /^\s*\#\s* User:\s* (?:([^<>\s]+(?:\s+[^<>\s]+)*)\s*)? # User name (optional) <(\S+?)>\s* # Email address for git configuration (?:<([^<>\s]+)>\s*)? # Second email address (optional) (?:(\S+(\s+\S+)))?$ # other data (optional) /x
50 1 5 unless keys %$cfg_data