| 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() || {}
MC/DC100%1/1
shift() || {}
shift()
Truth table100%2/2
A
A= shift()
| |||||||||||||
| 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__ | ||||||||||||