| 1 | package HTML::Form::ImageInput; | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | 11 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 11 | ▶ | use parent 'HTML::Form::SubmitInput'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | 11 | our $VERSION = '6.13'; | |||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | # ABSTRACT: An HTML form image input element for use with HTML::Form | ||||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||
| 10 | 2 | ▶ | sub form_name_value { | ||||||||||||||||||||||||||
|
Subroutine
form_name_value: called CC=5 SCAR=16.4
Pod
undocumented
| |||||||||||||||||||||||||||||
| 11 | 2 | my $self = shift; | |||||||||||||||||||||||||||
| 12 | 2 | my $clicked = $self->{clicked}; | |||||||||||||||||||||||||||
| 13 | 2 | ▶ | return unless $clicked; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 14 | 2 | ▶ | return if $self->{disabled}; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 15 | 2 | my $name = $self->{name}; | |||||||||||||||||||||||||||
| 16 | 2 | ▶ | $name = ( defined($name) && length($name) ) ? "$name." : ""; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
defined $name and length $name
MC/DC50%1/2
defined $name and length $name
defined $name
length $name
Truth table66%2/3
A and B
A= defined $nameB= length $name
| |||||||||||||||||||||||||||||
| 17 | return ( | ||||||||||||||||||||||||||||
| 18 | 2 | "${name}x" => $clicked->[0], | |||||||||||||||||||||||||||
| 19 | "${name}y" => $clicked->[1] | ||||||||||||||||||||||||||||
| 20 | ); | ||||||||||||||||||||||||||||
| 21 | } | ||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||
| 23 | 11 | 1; | |||||||||||||||||||||||||||
| 24 | |||||||||||||||||||||||||||||
| 25 | __END__ | ||||||||||||||||||||||||||||