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

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond 0.0% 0 / 7 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 38 CC 1 SCAR 6.9
CC
1
Cov
0%
init
2.0
subroutine
2.0
BEGIN
2.0
CRAP 2.0
1 # Copyrights 2003-2015 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.01.
5  
6 package OODoc::Text::Diagnostic;
7 use vars '$VERSION';
8 $VERSION = '2.01';
9  
10 use base 'OODoc::Text';
11  
12 use strict;
13 use warnings;
14  
15 use Log::Report 'oodoc';
16  
17  
18 sub init($)
19 { my ($self, $args) = @_;
20 $args->{type} ||= 'Diagnostic';
21 $args->{container} = delete $args->{subroutine} or panic;
22  
23 $self->SUPER::init($args) or return;
24  
25 $self;
26 }
27  
28 #-------------------------------------------
29  
30  
31 sub subroutine() { shift->container }
32  
33 #-------------------------------------------
34  
35 1;