blib/lib/WebService/Discord/Webhook.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 7 | 21 | 33.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
51 | 1 | 0 | 0 | $params{'id'} and $params{'token'} |
59 | 0 | 0 | 0 | $params{'id'} =~ /^\d+$/ and $params{'token'} =~ m[^[^/?]+$] |
175 | 1 | 0 | 0 | substr($params{'avatar'}, 0, 2) eq "\377\330" and substr($params{'avatar'}, -2) eq "\377\331" |
267 | 0 | 1 | 0 | $params{'embeds'} and $params{'files'} |
395 | 0 | 0 | 0 | $params{'event'} and $params{'json'} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
161 | 0 | 1 | 1 | $params{'name'} or exists $params{'avatar'} |
267 | 1 | 0 | 1 | $params{'content'} || $params{'files'} || $params{'embeds'} |