line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::ACME::X::Empty; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
3
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
23
|
|
4
|
1
|
|
|
1
|
|
2
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
24
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
3
|
use parent qw( Net::ACME::X::HashBase ); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
2
|
|
|
2
|
0
|
3
|
my ( $class, $args_hr ) = @_; |
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
|
|
2
|
my $str; |
12
|
|
|
|
|
|
|
|
13
|
2
|
100
|
66
|
|
|
10
|
if ( defined $args_hr->{'name'} && length $args_hr->{'name'} ) { |
14
|
1
|
|
|
|
|
2
|
$str = "“$args_hr->{'name'}” cannot be empty!"; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
else { |
17
|
1
|
|
|
|
|
1
|
$str = 'This value cannot be empty!'; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
2
|
|
|
|
|
8
|
return $class->SUPER::new($str, $args_hr); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |