lib/CodeGen/Protection/Format/HTML.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
_tidy
1.0
CRAP 1.0
« lib/CodeGen/Protection.pm ↑ Summary lib/CodeGen/Protection/Types.pm »
1 package CodeGen::Protection::Format::HTML;
2  
3 # ABSTRACT: Safely rewrite parts of HTML documents
4  
5 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Carp 'croak';
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 with 'CodeGen::Protection::Role';
8  
9 1 our $VERSION = '0.06';
10  
11 2 ▶sub _tidy {
Subroutine _tidy: called CC=1 SCAR=0.0
12 2 my ( $self, $code ) = @_;
13 2 return $code; # we don't yet tidy
14 }
15  
16 5 ▶sub _start_marker_format {
Subroutine _start_marker_format: called CC=1 SCAR=0.0
17 5 '<!-- %s %s. Do not touch any code between this and the end comment. Checksum: %s -->';
18 }
19  
20 5 ▶sub _end_marker_format {
Subroutine _end_marker_format: called CC=1 SCAR=0.0
21 5 '<!-- %s %s. Do not touch any code between this and the start comment. Checksum: %s -->';
22 }
23  
24 1 1;
25  
26 __END__
« lib/CodeGen/Protection.pm ↑ Summary lib/CodeGen/Protection/Types.pm »