blib/lib/Text/Trac/Text.pm

filter: Statementstmt 47.0% 8 / 17 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 40.0% 2 / 5 Podpod 0.0% 0 / 3 totaltotal 37.0% 10 / 27 SCAR 10.2
CC
2
Cov
42%
parse
6.0
new
2.0
html
2.0
CRAP 2.8
« blib/lib/Text/Trac/Heading.pm ↑ Summary blib/lib/Text/Trac/Macro/Timestamp.pm »
1 package Text::Trac::Text;
2 48 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 48 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 48 our $VERSION = '0.23';
6  
7 sub new {
8 0 ▶ my $class = shift;
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
9 0 my %args = @_;
10 my $self = {
11 context => $args{context},
12 0 html => '',
13 };
14 0 bless $self, $class;
15 }
16  
17 sub parse {
18 0 ▶ my $self = shift;
Subroutine parse: not called CC=2 SCAR=17.9
Pod undocumented
19 0 $self->{html} = '';
20 0 ▶ my $text = shift or return;
Branch: 1 branch
BranchTrueFalseTotal
my $text = shift() or return 0 0 0
21 0 $self->{html} = $text;
22 }
23  
24 0 ▶sub html { $_[0]->{html}; }
Subroutine html: not called CC=1 SCAR=6.9
Pod undocumented
25  
26 48 1;
« blib/lib/Text/Trac/Heading.pm ↑ Summary blib/lib/Text/Trac/Macro/Timestamp.pm »