blib/lib/App/Spoor/AccessEntryParser.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 12 | 12 | 100.0 |
line | true | false | branch |
---|---|---|---|
76 | 20 | 2 | if ($log_entry =~ / \A (?<ip>\S+)\s -\s (?<username>.+)\s \[(?<timestamp>[^\]]+)\]\s "(?<http_request>[^"]+)"\s (?<response_code>\d{3})\s /x) { } |
91 | 16 | 4 | if ($credential =~ /@/) { } |
97 | 16 | 4 | if ($response_code eq '200') { } |
103 | 4 | 16 | if ($credential =~ /@/ and $http_request =~ /\APOST.+doaddfwd.html/) { } |
4 | 12 | elsif ($credential =~ /@/ and $http_request =~ /\AGET.+dodelfwd.html\?.*emaildest=(?<forward_recipient>[^\s?]+)/) { } | |
125 | 4 | 16 | if $forward_recipient |