| 1 | package DTL::Fast::Tag::Comment; | ||||||||||||
| 2 | 3 | ▶ | use strict; use utf8; use warnings FATAL => 'all'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 3 | 3 | ▶ | use parent 'DTL::Fast::Tag'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | |||||||||||||
| 5 | 3 | $DTL::Fast::TAG_HANDLERS{'comment'} = __PACKAGE__; | |||||||||||
| 6 | |||||||||||||
| 7 | 3 | ▶ | use DTL::Fast::Text; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | |||||||||||||
| 9 | #@Override | ||||||||||||
| 10 | 0 | ▶ | sub get_close_tag{return 'endcomment';} | ||||||||||
|
Subroutine
get_close_tag: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 11 | |||||||||||||
| 12 | #@Override | ||||||||||||
| 13 | sub parse_next_chunk | ||||||||||||
| 14 | { | ||||||||||||
| 15 | 80 | ▶ | my $self = shift; | ||||||||||
|
Subroutine
parse_next_chunk: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||||
| 16 | 80 | my $chunk = shift @{$self->{'raw_chunks'}}; | |||||||||||
| 17 | 80 | ▶ | my $chunk_lines = scalar (my @tmp = $chunk =~ /(\n)/g ) || 0; | ||||||||||
|
Condition100%2/2
scalar(my(@tmp) = $chunk =~ /(\n)/g) || 0
MC/DC100%1/1
scalar(my(@tmp) = $chunk =~ /(\n)/g) || 0
scalar(my(@tmp) = $chunk =~ /(\n)/g)
Truth table100%2/2
A
A= scalar(my(@tmp) = $chunk =~ /(\n)/g)
| |||||||||||||
| 18 | |||||||||||||
| 19 | 80 | ▶ | if( $chunk =~ /^\{\%\s*endcomment\s*\%\}$/six ) | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 20 | { | ||||||||||||
| 21 | 16 | $self->{'raw_chunks'} = []; # this stops parsing | |||||||||||
| 22 | } | ||||||||||||
| 23 | |||||||||||||
| 24 | 80 | $DTL::Fast::Template::CURRENT_TEMPLATE_LINE += $chunk_lines; | |||||||||||
| 25 | |||||||||||||
| 26 | 80 | return; | |||||||||||
| 27 | } | ||||||||||||
| 28 | |||||||||||||
| 29 | #@Override | ||||||||||||
| 30 | sub render | ||||||||||||
| 31 | { | ||||||||||||
| 32 | 10 | ▶ | return ''; | ||||||||||
|
Subroutine
render: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 33 | } | ||||||||||||
| 34 | |||||||||||||
| 35 | 3 | 1; | |||||||||||