lib/MKDoc/XML/Decode/XMLBase.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 10 | 10 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 0 | 2 | 0.0 |
total | 14 | 16 | 87.5 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package MKDoc::XML::Decode::XMLBase; | ||||||
2 | 7 | 7 | 36 | use warnings; | |||
7 | 13 | ||||||
7 | 208 | ||||||
3 | 7 | 7 | 35 | use strict; | |||
7 | 13 | ||||||
7 | 1166 | ||||||
4 | |||||||
5 | our %XML_Decode = ( | ||||||
6 | 'amp' => '&', | ||||||
7 | 'lt' => '<', | ||||||
8 | 'gt' => '>', | ||||||
9 | 'quot' => '"', | ||||||
10 | 'apos' => "'", | ||||||
11 | ); | ||||||
12 | |||||||
13 | sub process | ||||||
14 | { | ||||||
15 | 6 | 6 | 0 | 14 | my $class = shift; | ||
16 | 6 | 11 | my $stuff = shift; | ||||
17 | 6 | 22 | return $XML_Decode{$stuff}; | ||||
18 | } | ||||||
19 | |||||||
20 | 21 | 21 | 0 | 54 | sub module_name { 'xml' } | ||
21 | |||||||
22 | 1; |