line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
12
|
use v5.12.0; |
|
1
|
|
|
|
|
3
|
|
2
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
37
|
|
3
|
|
|
|
|
|
|
package Data::Rx::CoreType::nil 0.200008; |
4
|
|
|
|
|
|
|
# ABSTRACT: the Rx //nil type |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use parent 'Data::Rx::CoreType'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub assert_valid { |
9
|
106
|
|
|
106
|
0
|
2916
|
my ($self, $value) = @_; |
10
|
|
|
|
|
|
|
|
11
|
106
|
100
|
|
|
|
224
|
return 1 if ! defined $value; |
12
|
|
|
|
|
|
|
|
13
|
104
|
|
|
|
|
439
|
$self->fail({ |
14
|
|
|
|
|
|
|
error => [ qw(type) ], |
15
|
|
|
|
|
|
|
message => "found value is defined", |
16
|
|
|
|
|
|
|
value => $value, |
17
|
|
|
|
|
|
|
}); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
70
|
|
|
70
|
0
|
207
|
sub subname { 'nil' } |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |