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   6 use strict;
  1         1  
  1         25  
2 1     1   3 use warnings;
  1         1  
  1         30  
3             package Data::Rx::CoreType::nil;
4             # ABSTRACT: the Rx //nil type
5             $Data::Rx::CoreType::nil::VERSION = '0.200007';
6 1     1   3 use parent 'Data::Rx::CoreType';
  1         1  
  1         3  
7              
8             sub assert_valid {
9 106     106 0 1631 my ($self, $value) = @_;
10              
11 106 100       200 return 1 if ! defined $value;
12              
13 104         436 $self->fail({
14             error => [ qw(type) ],
15             message => "found value is defined",
16             value => $value,
17             });
18             }
19              
20 54     54 0 142 sub subname { 'nil' }
21              
22             1;
23              
24             __END__