blib/lib/WWW/Mechanize/FormFiller/Value.pm

filter: Statementstmt 92.8% 13 / 14 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 3 / 3 totaltotal 91.3% 21 / 23 CC 2 SCAR 4.7
CC
2
Cov
94%
value
2.0
name
2.0
BEGIN
1.0
CRAP 1.6
« blib/lib/WWW/Mechanize/FormFiller/Value/Callback.pm ↑ Summary blib/lib/WWW/Mechanize/FormFiller/Value/Default.pm »
1 package WWW::Mechanize::FormFiller::Value;
2  
3 17 ▶use vars qw( $VERSION @ISA );
Subroutine BEGIN: called CC=1 SCAR=0.0
4 17 $VERSION = '0.13';
5 17 @ISA = ();
6  
7 67 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
8 67 my ($class,$name) = @_;
9 67 my $self = {
10 name => $name,
11 };
12  
13 67 bless $self,$class;
14  
15 67 $self;
16 };
17  
18 # You're supposed to override this
19 0 ▶sub value { undef };
Subroutine value: not called CC=1 SCAR=6.9
Pod documented
20  
21 # You can't set the name, but retrieve it
22 3 ▶sub name { my $result = $_[0]->{name}; $_[0]->{name} = $_[1] if scalar @_ == 2; $result };
Subroutine name: called CC=2 SCAR=6.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
if scalar @_ == 2 1 2 3
23  
24 17 1;
25 __END__
« blib/lib/WWW/Mechanize/FormFiller/Value/Callback.pm ↑ Summary blib/lib/WWW/Mechanize/FormFiller/Value/Default.pm »