lib/PPI/Transform/Doxygen.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 49 | 66 | 74.2 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
283 | 0 | 1 | 2 | @packages == 1 and $packages[0] eq '!main' |
339 | 0 | 43 | 0 | $chld->isa('PPI::Statement') and $chld->content =~ /^\s*with/ |
550 | 10 | 0 | 5 | $for and $for->format =~ /(?:function|method|class_method)/ |
561 | 14 | 1 | 8 | $sn->type eq 'head2' and $sn->title =~ /[\w:]+\s*\(.*\)/ |
693 | 5 | 1 | 5 | $node->children > 6 and $node->child(6)->content eq 'sub' |
line | l | !l | condition |
---|---|---|---|
291 | 1 | 2 | join('::', @parts) || '' |
323 | 2 | 1 | $txt //= '' |
380 | 3 | 0 | $doc->find('PPI::Statement') || [] |
439 | 12 | 11 | $sub_info->{$sname} || {'type', $sname =~ /^_/ ? 'private' : 'public', 'rv', 'void', 'params', [], 'name', $sname, 'static', 0, 'virtual', 0, 'class', $class, 'text', ' Undocumented Function '} |
536 | 1 | 2 | $doc->find('PPI::Statement::Data') || [] |
564 | 8 | 0 | 'PPI::Transform::Doxygen::POD'->print($sn) // '' |
586 | 7 | 1 | pop @parts || 'void' |
589 | 3 | 5 | pop @parts || '' |
595 | 0 | 8 | join('::', @nparts) || '!main' |
625 | 25 | 0 | $vtype{$sig[0]} || '' |
703 | 4 | 5 | $node->find('PPI::Token::Pod') || [] |
713 | 7 | 2 | $node->find('PPI::Token::Prototype') || [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
244 | 3 | 0 | 0 | $out || $self->{'overwrite'} |
250 | 3 | 0 | 0 | $out //= $in |
311 | 0 | 3 | 0 | $doc->find_first('PPI::Token::End') || 'PPI::Token::End'->new |
345 | 0 | 0 | 0 | $tok->isa('PPI::Token::Quote') or $tok->isa('PPI::Token::QuoteLike::Words') |
386 | 11 | 8 | 130 | $stmt_node->class eq 'PPI::Statement::Sub' or $modifier{$mod} |
411 | 798 | 19 | 19 | $node->previous_sibling || $node->parent |
597 | 1 | 1 | 6 | $cat eq 'function' || $cat eq 'class_method' |
693 | 4 | 6 | 5 | $node->class eq 'PPI::Statement::Sub' or $node->children > 6 and $node->child(6)->content eq 'sub' |
710 | 1 | 1 | 2 | $fmt eq 'function' || $fmt eq 'class_method' |