PAUSE/Plugin.pm

filter: Statementstmt 100% 30 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 36 / 36 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PAUSE/Plugin/URL.pm ↑ Summary
1 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Parse::PAUSE::Plugin;
5 2 our $VERSION = '1.001';
6  
7  
8 2 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use Encode;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 ▶use Encode::Newlines;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 2 requires '_regexp', '_parse';
13  
14 2 has 'upload' => (
15 is => 'ro', isa => 'Str', writer => '_set_upload', init_arg => undef,
16 );
17  
18 2 has 'pathname' => (
19 is => 'ro', isa => 'Str', writer => '_set_pathname', init_arg => undef,
20 );
21  
22 2 has 'size' => (
23 is => 'ro', isa => 'Int', writer => '_set_size', init_arg => undef,
24 );
25  
26 2 has 'md5' => (
27 is => 'ro', isa => 'Str', writer => '_set_md5', init_arg => undef,
28 );
29  
30 2 has 'entered_by' => (
31 is => 'ro', isa => 'Str', writer => '_set_entered_by', init_arg => undef,
32 );
33  
34 2 has 'entered_on' => (
35 is => 'ro', isa => 'Str', writer => '_set_entered_on', init_arg => undef,
36 );
37  
38 2 has 'completed' => (
39 is => 'ro', isa => 'Str', writer => '_set_completed', init_arg => undef,
40 );
41  
42 2 has 'paused_version' => (
43 is => 'ro', isa => 'Int', writer => '_set_paused_version', init_arg => undef,
44 );
45  
46 3 ▶sub _process {
Subroutine _process: called CC=1 SCAR=0.0
47 3 my ($class, $content) = @_;
48 3 my $self = $class->new();
49 3 my $normalized_content = decode(CRLF => $content);
50  
51 3 return $self->_parse($normalized_content);
52 }
53  
54 2 1;
« PAUSE/Plugin/URL.pm ↑ Summary