File Coverage

blib/lib/RecentInfo/GroupEntry.pm
Criterion Covered Total %
statement 20 20 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 2 0.0
total 25 27 92.5


line stmt bran cond sub pod time code
1             package RecentInfo::GroupEntry 0.04;
2 2     2   35 use 5.020;
  2         7  
3 2     2   10 use Moo 2;
  2         23  
  2         11  
4 2     2   743 use experimental 'signatures';
  2         3  
  2         12  
5              
6             =head1 NAME
7              
8             RecentInfo::GroupEntry - recent files group XBEL entry
9              
10             =cut
11              
12             has ['group'] => (
13             is => 'ro',
14             required => 1
15             );
16              
17 7     7 0 11 sub as_XML_fragment($self, $doc) {
  7         11  
  7         9  
  7         10  
18 7         43 my $group = $doc->createElement('bookmark:group');
19 7         68 $group->addChild($doc->createTextNode($self->group));
20             #$group->setTextContent($self->group);
21 7         51 return $group
22             }
23              
24 16     16 0 30 sub from_XML_fragment( $class, $frag ) {
  16         27  
  16         44  
  16         20  
25 16         480 $class->new(
26             group => $frag->textContent,
27             );
28             }
29              
30             1;
31              
32             =head1 REPOSITORY
33              
34             The public repository of this module is
35             L.
36              
37             =head1 SUPPORT
38              
39             The public support forum of this module is L.
40              
41             =head1 BUG TRACKER
42              
43             Please report bugs in this module via Github
44             at L
45              
46             =head1 AUTHOR
47              
48             Max Maischein C
49              
50             =head1 COPYRIGHT (c)
51              
52             Copyright 2024-2024 by Max Maischein C.
53              
54             =head1 LICENSE
55              
56             This module is released under the same terms as Perl itself.
57              
58             =cut
59