Element/Target.pm

filter: Statementstmt 85.0% 17 / 20 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 60.0% 3 / 5 Podpod 100% 2 / 2 totaltotal 73.3% 22 / 30 CC 2 SCAR 10.4
CC
2
Cov
77%
as_string
6.0
as_text
2.0
BEGIN
1.0
CRAP 2.8
« Element/TableHLine.pm ↑ Summary Element/TimeRange.pm »
1 package Org::Element::Target;
2  
3 3 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use locale;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 extends 'Org::Element';
7 3 with 'Org::ElementRole';
8 3 with 'Org::ElementRole::Inline';
9  
10 3 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
11 3 our $DATE = '2026-07-21'; # DATE
12 3 our $DIST = 'Org-Parser'; # DIST
13 3 our $VERSION = '0.563'; # VERSION
14  
15 3 has target => (is => 'rw');
16  
17 0 ▶sub as_string {
Subroutine as_string: not called CC=2 SCAR=17.9
Pod documented
18 0 my ($self) = @_;
19 0 ▶ join("",
Condition0%0/2
$self->target // ""
l!l
00
MC/DC0%0/1
$self->target // ""
$self->target
Truth table0%0/2
A
A= $self->target
Aresult
11
00
20 "<<", ($self->target // ""), ">>");
21 }
22  
23 0 ▶sub as_text {
Subroutine as_text: not called CC=1 SCAR=6.9
Pod documented
24 0 goto \&as_string;
25 }
26  
27 3 1;
28 # ABSTRACT: Represent Org target
29  
30 __END__
« Element/TableHLine.pm ↑ Summary Element/TimeRange.pm »