Zoom5341J.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
« Zoom5341J/Test.pm ↑ Summary
1 package Device::CableModem::Zoom5341J;
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.00';
7 7 our @ISA = qw();
8  
9  
10 sub new
11 5 ▶{
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
12 5 my ($class, %parameters) = @_;
13  
14 5 my $self = {
15 # How we get at the modem
16 modem_addr => '192.168.100.1',
17 username => 'admin',
18 password => 'password',
19  
20 # Runtime data
21 conn_html => undef,
22 conn_stats => undef,
23  
24 # Overrides
25 %parameters,
26 };
27  
28  
29 5 bless $self, $class;
30 5 return $self;
31 }
32  
33  
34 # Stuff for grabbing the pages from the modem
35 7 ▶use Device::CableModem::Zoom5341J::Fetch;
Subroutine BEGIN: called CC=1 SCAR=0.0
36  
37 # Parsing the HTML
38 7 ▶use Device::CableModem::Zoom5341J::Parse;
Subroutine BEGIN: called CC=1 SCAR=0.0
39  
40 # Returning stats to the user
41 7 ▶use Device::CableModem::Zoom5341J::Get;
Subroutine BEGIN: called CC=1 SCAR=0.0
42  
43  
44  
45 7 1;
46 __END__
« Zoom5341J/Test.pm ↑ Summary