lib/PPI/Transform/Doxygen.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 38 | 51 | 74.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
281 | 0 | 1 | 2 | @packages == 1 and $packages[0] eq '!main' |
529 | 4 | 5 | 16 | $sn and $sn->type =~ /^(?:head[1-4]|begin|item|over|pod|for)$/ |
530 | 7 | 1 | 8 | $sn->type eq 'head2' and $sn->title =~ /[\w:]+\s*\(.*\)/ |
538 | 0 | 0 | 4 | $sn->type eq 'for' and $sn->format =~ /^(?:function|method|class_method)$/ |
line | l | !l | condition |
---|---|---|---|
289 | 1 | 2 | join('::', @parts) || '' |
321 | 2 | 1 | $txt //= '' |
361 | 3 | 0 | $doc->find('PPI::Statement') || [] |
416 | 11 | 7 | $sub_info->{$sname} || {'type', $sname =~ /^_/ ? 'private' : 'public', 'rv', 'void', 'params', [], 'name', $sname, 'static', 0, 'virtual', 0, 'class', $class, 'text', ' Undocumented Function '} |
566 | 7 | 1 | pop @parts || 'void' |
569 | 3 | 5 | pop @parts || '' |
575 | 0 | 8 | join('::', @nparts) || '!main' |
681 | 3 | 0 | $node->find('PPI::Token::Pod') || [] |
690 | 3 | 0 | $node->find('PPI::Token::Prototype') || [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
242 | 3 | 0 | 0 | $out || $self->{'overwrite'} |
248 | 3 | 0 | 0 | $out //= $in |
309 | 0 | 3 | 0 | $doc->find_first('PPI::Token::End') || 'PPI::Token::End'->new |
365 | 10 | 4 | 127 | $stmt_node->class eq 'PPI::Statement::Sub' or $stmt_node->child(0) eq 'has' |
391 | 634 | 14 | 14 | $node->previous_sibling || $node->parent |
577 | 1 | 1 | 6 | $cat eq 'function' || $cat eq 'class_method' |
687 | 1 | 1 | 1 | $for->format eq 'function' || $for->format eq 'class_method' |