blib/lib/OODoc/Text/Default.pm untested

filter: Statementstmt 0.0% 0 / 25 Branchbran n/a Conditioncond 0.0% 0 / 10 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 46 SCAR 6.9
CC
1
Cov
0%
init
2.0
subroutine
2.0
value
2.0
CRAP 2.0
1 # Copyrights 2003-2021 by [Mark Overmeer].
2 # For other contributors see ChangeLog.
3 # See the manual pages for details on the licensing terms.
4 # Pod stripped from pm file by OODoc 2.02.
5 # This code is part of perl distribution OODoc. It is licensed under the
6 # same terms as Perl itself: https://spdx.org/licenses/Artistic-2.0.html
7  
8 package OODoc::Text::Default;
9 use vars '$VERSION';
10 $VERSION = '2.02';
11  
12 use base 'OODoc::Text';
13  
14 use strict;
15 use warnings;
16  
17 use Log::Report 'oodoc';
18  
19  
20 sub init($)
21 { my ($self, $args) = @_;
22 $args->{type} ||= 'Default';
23 $args->{container} = delete $args->{subroutine} or panic;
24  
25 $self->SUPER::init($args)
26 or return;
27  
28 $self->{OTD_value} = delete $args->{value};
29 defined $self->{OTD_value} or panic;
30  
31 $self;
32 }
33  
34 #-------------------------------------------
35  
36  
37 sub subroutine() { shift->container }
38  
39  
40 sub value() { shift->{OTD_value} }
41  
42 1;