File Coverage

blib/lib/Data/Rx/CoreType/fail.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 2 0.0
total 15 17 88.2


line stmt bran cond sub pod time code
1 1     1   11 use v5.12.0;
  1         4  
2 1     1   5 use warnings;
  1         2  
  1         38  
3             package Data::Rx::CoreType::fail 0.200008;
4             # ABSTRACT: the Rx //fail type
5              
6 1     1   6 use parent 'Data::Rx::CoreType';
  1         1  
  1         5  
7              
8             sub assert_valid {
9 54     54 0 2639 $_[0]->fail({
10             error => [ qw(fail) ],
11             message => "matching reached an always-fail check",
12             value => $_[1],
13             });
14             }
15              
16 70     70 0 209 sub subname { 'fail' }
17              
18             1;
19              
20             __END__