blib/lib/Text/HikiDoc/Plugin/sub.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 12 | 100.0 |
branch | n/a | ||
condition | 1 | 2 | 50.0 |
subroutine | 4 | 4 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 18 | 19 | 94.7 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Text::HikiDoc::Plugin::sub; | ||||||
2 | |||||||
3 | 1 | 1 | 4 | use strict; | |||
1 | 1 | ||||||
1 | 25 | ||||||
4 | 1 | 1 | 3 | use warnings; | |||
1 | 0 | ||||||
1 | 27 | ||||||
5 | 1 | 1 | 3 | use base 'Text::HikiDoc::Plugin'; | |||
1 | 0 | ||||||
1 | 7 | ||||||
6 | |||||||
7 | sub to_html { | ||||||
8 | 4 | 4 | 1 | 4 | my $self = shift; | ||
9 | 4 | 50 | 8 | my $str = shift || ''; | |||
10 | |||||||
11 | 4 | 41 | return ''.$str.''; | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |