File Coverage

blib/lib/HTML/Tested/Value/Submit.pm
Criterion Covered Total %
statement 12 12 100.0
branch 2 2 100.0
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 19 19 100.0


line stmt bran cond sub pod time code
1 1     1   3429 use strict;
  1         4  
  1         81  
2 1     1   7 use warnings FATAL => 'all';
  1         2  
  1         83  
3              
4             package HTML::Tested::Value::Submit;
5 1     1   5 use base 'HTML::Tested::Value';
  1         2  
  1         214  
6              
7             sub value_to_string {
8 8     8 1 15 my ($self, $name, $val) = @_;
9 8 100       24 my $vstr = $val ? " value=\"$val\"" : "";
10 8         38 return <
11            
12             ENDS
13             }
14              
15             1;