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 = '2023-11-06'; # DATE
12 3 our $DIST = 'Org-Parser'; # DIST
13 3 our $VERSION = '0.561'; # VERSION
14  
15 3 has target => (is => 'rw');
16  
17 sub as_string {
18 0 ▶ my ($self) = @_;
Subroutine as_string: not called CC=2 SCAR=17.9
Pod documented
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 sub as_text {
24 0 ▶ goto \&as_string;
Subroutine as_text: not called CC=1 SCAR=6.9
Pod documented
25 }
26  
27 3 1;
28 # ABSTRACT: Represent Org target
29  
30 __END__
31  
32 =pod
33  
34 =encoding UTF-8
35  
36 =head1 NAME
37  
38 Org::Element::Target - Represent Org target
39  
40 =head1 VERSION
41  
42 This document describes version 0.561 of Org::Element::Target (from Perl distribution Org-Parser), released on 2023-11-06.
43  
44 =head1 DESCRIPTION
45  
46 Derived from L<Org::Element>.
47  
48 =head1 ATTRIBUTES
49  
50 =head2 target
51  
52 =head1 METHODS
53  
54 =head2 as_string => str
55  
56 From L<Org::Element>.
57  
58 =head2 as_text => str
59  
60 From L<Org::ElementRole::Inline>.
61  
62 =head1 HOMEPAGE
63  
64 Please visit the project's homepage at L<https://metacpan.org/release/Org-Parser>.
65  
66 =head1 SOURCE
67  
68 Source repository is at L<https://github.com/perlancar/perl-Org-Parser>.
69  
70 =head1 AUTHOR
71  
72 perlancar <perlancar@cpan.org>
73  
74 =head1 CONTRIBUTING
75  
76  
77 To contribute, you can send patches by email/via RT, or send pull requests on
78 GitHub.
79  
80 Most of the time, you don't need to build the distribution yourself. You can
81 simply modify the code, then test via:
82  
83 % prove -l
84  
85 If you want to build the distribution (e.g. to try to install it locally on your
86 system), you can install L<Dist::Zilla>,
87 L<Dist::Zilla::PluginBundle::Author::PERLANCAR>,
88 L<Pod::Weaver::PluginBundle::Author::PERLANCAR>, and sometimes one or two other
89 Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps required beyond
90 that are considered a bug and can be reported to me.
91  
92 =head1 COPYRIGHT AND LICENSE
93  
94 This software is copyright (c) 2023, 2022, 2021, 2020, 2019, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar <perlancar@cpan.org>.
95  
96 This is free software; you can redistribute it and/or modify it under
97 the same terms as the Perl 5 programming language system itself.
98  
99 =head1 BUGS
100  
101 Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Org-Parser>
102  
103 When submitting a bug or request, please include a test-file or a
104 patch to an existing test-file that illustrates the bug or desired
105 feature.
106  
107 =cut
« Element/TableHLine.pm ↑ Summary Element/TimeRange.pm »