line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Valiemon::Attributes::Minimum; |
2
|
1
|
|
|
1
|
|
855
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
44
|
|
3
|
1
|
|
|
1
|
|
8
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
49
|
|
4
|
1
|
|
|
1
|
|
8
|
use utf8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
5
|
1
|
|
|
1
|
|
852
|
use parent qw(Valiemon::Attributes); |
|
1
|
|
|
|
|
412
|
|
|
1
|
|
|
|
|
7
|
|
6
|
|
|
|
|
|
|
|
7
|
11
|
|
|
11
|
0
|
83
|
sub attr_name { 'minimum' } |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub is_valid { |
10
|
11
|
|
|
11
|
0
|
26
|
my ($class, $context, $schema, $data) = @_; |
11
|
11
|
|
|
|
|
23
|
my $min = $schema->{minimum}; |
12
|
11
|
|
100
|
|
|
56
|
my $exclusive = $schema->{exclusiveMinimum} || 0; |
13
|
|
|
|
|
|
|
$context->in_attr($class, sub { |
14
|
1
|
|
|
1
|
|
157
|
no warnings 'numeric'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
117
|
|
15
|
11
|
100
|
|
11
|
|
52
|
$exclusive ? $min < $data : $min <= $data; |
16
|
11
|
|
|
|
|
86
|
}); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |