ElementRole/Inline.pm

filter: Statementstmt 72.2% 13 / 18 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 100% 3 / 3 totaltotal 71.4% 20 / 28 CC 2 SCAR 6.5
CC
2
Cov
70%
children_as_text
2.7
is_block
2.0
is_inline
2.0
CRAP 1.9
« Element/RadioTarget.pm ↑ Summary Element/ListItem.pm »
1 package Org::ElementRole::Inline;
2  
3 32 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 32 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 32 requires 'as_text';
7  
8 32 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
9 32 our $DATE = '2026-07-21'; # DATE
10 32 our $DIST = 'Org-Parser'; # DIST
11 32 our $VERSION = '0.563'; # VERSION
12  
13 0 ▶sub is_block { 0 }
Subroutine is_block: not called CC=1 SCAR=6.9
Pod documented
14  
15 0 ▶sub is_inline { 1 }
Subroutine is_inline: not called CC=1 SCAR=6.9
Pod documented
16  
17 1 ▶sub children_as_text {
Subroutine children_as_text: called CC=2 SCAR=10.1
Pod documented
18 1 my ($self) = @_;
19 1 ▶ return "" unless $self->children;
Branch: 1 branch
BranchTrueFalseTotal
unless $self->children 1 0 1
20 0 join "", map {$_->as_text} @{$self->children};
21 }
22  
23 32 1;
24 # ABSTRACT: Role for inline elements
25  
26 __END__
« Element/RadioTarget.pm ↑ Summary Element/ListItem.pm »