Net/SecurityCenter/API/Status.pm

filter: Statementstmt 95.4% 21 / 22 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 93.3% 28 / 30 CC 2 SCAR 3.0
CC
2
Cov
92%
status
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« App/TenableSC/Logger.pm ↑ Summary Net/SecurityCenter/Error.pm »
1 package Net::SecurityCenter::API::Status;
2  
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use parent 'Net::SecurityCenter::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 ▶use Net::SecurityCenter::Utils qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 our $VERSION = '0.311';
11  
12 #-------------------------------------------------------------------------------
13 # METHODS
14 #-------------------------------------------------------------------------------
15  
16 1 ▶sub status {
Subroutine status: called CC=2 SCAR=7.1
Pod documented
17  
18 1 my ( $self, %args ) = @_;
19  
20 1 my $tmpl = {
21 fields => {
22 filter => \&sc_filter_array_to_string
23 },
24 raw => {},
25 };
26  
27 1 my $params = sc_check_params( $tmpl, \%args );
28 1 my $raw = delete( $params->{'raw'} );
29 1 my $status = $self->client->get( '/status', $params );
30  
31 1 ▶ if ($raw) {
Branch: 1 branch
BranchTrueFalseTotal
if ($raw) 0 1 1
32 0 return $status;
33 }
34  
35 1 return sc_normalize_hash($status);
36  
37 }
38  
39 #-------------------------------------------------------------------------------
40  
41 2 1;
42  
43 __END__
« App/TenableSC/Logger.pm ↑ Summary Net/SecurityCenter/Error.pm »