Zoom5341.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.5% 28 / 29 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
new
1.0
CRAP 1.0
« Zoom5341/Test.pm ↑ Summary
1 package Device::CableModem::Zoom5341;
2  
3 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 7 our $VERSION = '1.10';
7 7 our @ISA = qw();
8  
9  
10 # We'll do this OO
11 sub new
12 5 ▶{
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
13 5 my ($class, %parameters) = @_;
14  
15 5 my $self = {
16 # Config
17 modem_addr => '192.168.100.1',
18  
19 # Runtime data
20 conn_html => undef,
21 conn_stats => undef,
22  
23 # Overrides
24 %parameters,
25 };
26  
27  
28 5 bless $self, $class;
29 5 return $self;
30 }
31  
32  
33 # Stuff for grabbing the pages from the modem
34 7 ▶use Device::CableModem::Zoom5341::Fetch;
Subroutine BEGIN: called CC=1 SCAR=0.0
35  
36 # Parsing the HTML
37 7 ▶use Device::CableModem::Zoom5341::Parse;
Subroutine BEGIN: called CC=1 SCAR=0.0
38  
39 # Returning stats to the user
40 7 ▶use Device::CableModem::Zoom5341::Get;
Subroutine BEGIN: called CC=1 SCAR=0.0
41  
42  
43  
44 7 1;
45 __END__
« Zoom5341/Test.pm ↑ Summary