File Coverage

blib/lib/Org/Element/ListItem.pm
Criterion Covered Total %
statement 12 12 100.0
branch 3 4 75.0
condition n/a
subroutine 5 5 100.0
pod 1 2 50.0
total 21 23 91.3


line stmt bran cond sub pod time code
1              
2             use 5.010;
3 6     6   1234 use locale;
  6         19  
4 6     6   29 use Moo;
  6         9  
  6         38  
5 6     6   157 extends 'Org::Element';
  6         11  
  6         41  
6              
7             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
8             our $DATE = '2022-06-23'; # DATE
9             our $DIST = 'Org-Parser'; # DIST
10             our $VERSION = '0.558'; # VERSION
11              
12             has bullet => (is => 'rw');
13             has check_state => (is => 'rw');
14             has desc_term => (is => 'rw');
15              
16             my ($self) = @_;
17             join("",
18 3     3 0 3148 $self->parent->indent,
19 3 50       51 $self->bullet, " ",
    100          
20             defined($self->check_state) ? "[".$self->check_state."]" : "",
21             defined($self->desc_term) ? $self->desc_term->as_string . " ::" : "",
22             );
23             }
24              
25             my ($self) = @_;
26             $self->header_as_string . $self->children_as_string;
27             }
28 2     2 1 5  
29 2         23 1;
30             # ABSTRACT: Represent Org list item
31              
32              
33             =pod
34              
35             =encoding UTF-8
36              
37             =head1 NAME
38              
39             Org::Element::ListItem - Represent Org list item
40              
41             =head1 VERSION
42              
43             This document describes version 0.558 of Org::Element::ListItem (from Perl distribution Org-Parser), released on 2022-06-23.
44              
45             =head1 DESCRIPTION
46              
47             Must have L<Org::Element::List> as parent.
48              
49             Derived from L<Org::Element>.
50              
51             =head1 ATTRIBUTES
52              
53             =head2 bullet
54              
55             =head2 check_state
56              
57             undef, " ", "X" or "-".
58              
59             =head2 desc_term
60              
61             Description term (for description list).
62              
63             =head1 METHODS
64              
65             =for Pod::Coverage header_as_string as_string
66              
67             =head1 HOMEPAGE
68              
69             Please visit the project's homepage at L<https://metacpan.org/release/Org-Parser>.
70              
71             =head1 SOURCE
72              
73             Source repository is at L<https://github.com/perlancar/perl-Org-Parser>.
74              
75             =head1 AUTHOR
76              
77             perlancar <perlancar@cpan.org>
78              
79             =head1 CONTRIBUTING
80              
81              
82             To contribute, you can send patches by email/via RT, or send pull requests on
83             GitHub.
84              
85             Most of the time, you don't need to build the distribution yourself. You can
86             simply modify the code, then test via:
87              
88             % prove -l
89              
90             If you want to build the distribution (e.g. to try to install it locally on your
91             system), you can install L<Dist::Zilla>,
92             L<Dist::Zilla::PluginBundle::Author::PERLANCAR>, and sometimes one or two other
93             Dist::Zilla plugin and/or Pod::Weaver::Plugin. Any additional steps required
94             beyond that are considered a bug and can be reported to me.
95              
96             =head1 COPYRIGHT AND LICENSE
97              
98             This software is copyright (c) 2022, 2021, 2020, 2019, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar <perlancar@cpan.org>.
99              
100             This is free software; you can redistribute it and/or modify it under
101             the same terms as the Perl 5 programming language system itself.
102              
103             =head1 BUGS
104              
105             Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Org-Parser>
106              
107             When submitting a bug or request, please include a test-file or a
108             patch to an existing test-file that illustrates the bug or desired
109             feature.
110              
111             =cut