Branch Coverage

blib/lib/App/Spoor/LoginEntryParser.pm
Criterion Covered Total %
branch 12 14 85.7


line true false branch
66 8 4 if ($log_entry =~ / \A \[(?<timestamp>[^\]]+)\]\s info\s \[(?<scope>[^\]]+)\]\s (?<ip>\S+)\s -\s(?<credential_string>[^-]+)\s-\s SUCCESS /x) { }
4 0 elsif ($log_entry =~ / \A \[(?<timestamp>[^\]]+)\]\s info\s \[(?<scope>[^\]]+)\]\s (?<ip>\S+)\s -\s(?<credential>[^-]+)\s "(?<endpoint>[^"]+)"\s (?<status>[A-Z]+)\s [^:]+:\s(?<message>.+) \Z /x) { }
85 4 4 if ($+{'credential_string'} =~ /\A(?<credential>\S+)\s\(possessor: (?<possessor>[^\)]+)\)/) { }
116 2 10 if ($response{'scope'} eq 'webmaild' and $response{'credential'} =~ /@/) { }
2 8 elsif ($response{'scope'} eq 'webmaild') { }
4 4 elsif ($response{'scope'} eq 'cpaneld') { }
4 0 elsif ($response{'scope'} eq 'whostmgrd') { }