Expander/Guess/MMagic.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.8% 31 / 32 CC 2 SCAR 2.5
CC
2
Cov
100%
type
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Expander/Guess.pm ↑ Summary
1 package MIME::Expander::Guess::MMagic;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 4 $VERSION = '0.02';
7  
8 4 ▶use parent qw(MIME::Expander::Guess);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 4 ▶use File::MMagic;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 54 ▶sub type {
Subroutine type: called CC=2 SCAR=6.9
Pod undocumented
12 54 my $class = shift;
13 54 my $ref_contents = shift;
14 54 ▶ my $info = shift || {};
Condition100%2/2
shift() || {}
l!l
486
MC/DC100%1/1
shift() || {}
shift()
Truth table100%2/2
A
A= shift()
Aresult
11
00
15 54 my $data = substr($$ref_contents, 0, 0x8564);
16 54 return File::MMagic->new->checktype_contents($data);
17 }
18  
19 4 1;
20 __END__
« Expander/Guess.pm ↑ Summary