examples/Experimental/Sample.pm

filter: Statementstmt 52.9% 9 / 17 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 0.0% 0 / 2 totaltotal 44.0% 11 / 25 CC 2 SCAR 11.6
CC
2
Cov
47%
name
6.0
new
2.0
BEGIN
1.0
CRAP 3.2
« blib/lib/Test/Unit/TestCase.pm ↑ Summary blib/lib/Test/Unit/Assertion/Regexp.pm »
1 package Experimental::Sample;
2
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use vars qw($VERSION @ISA @EXPORT $SIGNPOST $test_suite);
Subroutine BEGIN: called CC=1 SCAR=0.0
5
6 3 require Exporter;
7
8 3 @ISA = qw(Exporter);
9
10
11 sub new {
12 0 ▶ my $pkg = shift;
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
13 0 my $self = { @_ };
14
15
16 0 bless($self, $pkg);
17
18 0 return $self;
19 }
20
21 # object methods - public
22
23 sub name {
24 0 ▶ my ( $self, $name ) = @_;
Subroutine name: not called CC=2 SCAR=17.9
Pod undocumented
25 0 ▶ if( defined( $name ) ){
Branch: 1 branch
BranchTrueFalseTotal
if (defined $name) 0 0 0
26 0 $self->{name} = $name;
27 }
28 0 return $self->{name};
29 }
30
31
32 3 1;
33 __END__
« blib/lib/Test/Unit/TestCase.pm ↑ Summary blib/lib/Test/Unit/Assertion/Regexp.pm »