File Coverage

blib/lib/Data/Rx/CoreType/nil.pm
Criterion Covered Total %
statement 13 13 100.0
branch 2 2 100.0
condition n/a
subroutine 5 5 100.0
pod 0 2 0.0
total 20 22 90.9


line stmt bran cond sub pod time code
1 1     1   9 use strict;
  1         2  
  1         29  
2 1     1   5 use warnings;
  1         2  
  1         45  
3             package Data::Rx::CoreType::nil;
4             # ABSTRACT: the Rx //nil type
5             $Data::Rx::CoreType::nil::VERSION = '0.200006';
6 1     1   5 use parent 'Data::Rx::CoreType';
  1         2  
  1         6  
7              
8             sub assert_valid {
9 106     106 0 3195 my ($self, $value) = @_;
10              
11 106 100       260 return 1 if ! defined $value;
12              
13 104         709 $self->fail({
14             error => [ qw(type) ],
15             message => "found value is defined",
16             value => $value,
17             });
18             }
19              
20 54     54 0 188 sub subname { 'nil' }
21              
22             1;
23              
24             __END__