File Coverage

blib/lib/Armadito/Agent/HTTP/Client/ArmaditoAV/Event/OnDemandProgressEvent.pm
Criterion Covered Total %
statement 12 20 60.0
branch 0 6 0.0
condition n/a
subroutine 4 6 66.6
pod 2 2 100.0
total 18 34 52.9


line stmt bran cond sub pod time code
1             package Armadito::Agent::HTTP::Client::ArmaditoAV::Event::OnDemandProgressEvent;
2              
3 4     4   19589740 use strict;
  4         10  
  4         115  
4 4     4   14 use warnings;
  4         5  
  4         126  
5 4     4   16 use base 'Armadito::Agent::HTTP::Client::ArmaditoAV::Event';
  4         81  
  4         665  
6              
7 4     4   344 use Armadito::Agent::Tools::Security qw(isANumber);
  4         6  
  4         602  
8              
9             sub new {
10 0     0 1   my ( $class, %params ) = @_;
11              
12 0           my $self = $class->SUPER::new(%params);
13              
14             # TODO: Add more validation
15 0 0         die "Invalid malware_count." if !isANumber( $self->{jobj}->{malware_count} );
16 0 0         die "Invalid suspicious_count." if !isANumber( $self->{jobj}->{suspicious_count} );
17 0 0         die "Invalid scanned_count." if !isANumber( $self->{jobj}->{scanned_count} );
18              
19 0           return $self;
20             }
21              
22             sub run {
23 0     0 1   my ( $self, %params ) = @_;
24              
25 0           return $self;
26             }
27             1;
28              
29             __END__
30              
31             =head1 NAME
32              
33             Armadito::Agent::HTTP::Client::ArmaditoAV::Event::OnDemandProgressEvent - ArmaditoAV OnDemandProgressEvent class
34              
35             =head1 DESCRIPTION
36              
37             This is the class dedicated to OnDemandProgressEvent of ArmaditoAV api.
38              
39             =head1 FUNCTIONS
40              
41             =head2 run ( $self, %params )
42              
43             Run event related stuff.
44              
45             =head2 new ( $class, %params )
46              
47             Instanciate this class.