Zoom5341J/Test.pm

filter: Statementstmt 100% 13 / 13 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 89.4% 17 / 19 CC 2 SCAR 4.1
CC
2
Cov
93%
load_test_data
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« Zoom5341J/Get.pm ↑ Summary Zoom5341J.pm »
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 Device::CableModem::Zoom5341J;
5  
6  
7 =head1 NAME
8  
9 Device::CableModem::Zoom5341J::Test
10  
11 =head1 NOTA BENE
12  
13 This is part of the guts of Device::CableModem::Zoom5341J. If you're
14 reading this, you're either developing the module, writing tests, or
15 coloring outside the lines; consider yourself warned.
16  
17 =cut
18  
19  
20 =head2 ->load_test_data
21  
22 Loads sample data for tests
23 =cut
24 sub load_test_data
25 2 ▶{
Subroutine load_test_data: called CC=2 SCAR=7.0
Pod undocumented
26 2 my $self = shift;
27 2 my $samfile = shift;
28  
29 2 ▶ open my $sdf, '<', $samfile or die "Couldn't load sample data: $@";
Branch: 1 branch
BranchTrueFalseTotal
open my $sdf, "<", $samfile or die "Couldn't load sample data: $@" 2 0 2
30 2 my $html = join '', <$sdf>;
31 2 close $sdf;
32  
33 2 $self->{conn_html} = $html;
34 }
35  
36  
37 2 1;
38 __END__
« Zoom5341J/Get.pm ↑ Summary Zoom5341J.pm »