Document/WebGUI/Asset/Snippet.pm

filter: Statementstmt 80.0% 8 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 85.7% 12 / 14 CC 1 SCAR 0.7
CC
1
Cov
80%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
↑ Summary Document/WebGUI/Asset/Template.pm »
1 package Padre::Document::WebGUI::Asset::Snippet;
2 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 $Padre::Document::WebGUI::Asset::Snippet::VERSION = '1.002';
4 }
5  
6 # ABSTRACT: Padre::Document::WebGUI::Asset::Snippet subclass representing a WebGUI Snippet
7  
8 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 0 ▶use Padre::Logger;
Subroutine BEGIN: called CC=1 SCAR=2.6
11 use Padre::Document::WebGUI::Asset;
12  
13 our @ISA = 'Padre::Document::WebGUI::Asset';
14  
15  
16 sub lexer {
17 my $self = shift;
18 my $mimetype = $self->asset->{mimetype};
19 TRACE("Snippet mimetype: $mimetype") if DEBUG;
20 Padre::MimeTypes->get_lexer( $mimetype || 'text/html' );
21 }
22  
23  
24 1;
25  
26 __END__
↑ Summary Document/WebGUI/Asset/Template.pm »