File Coverage

blib/lib/JMAP/Tester/Result/Failure.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 13 14 92.8


line stmt bran cond sub pod time code
1 4     4   251366 use v5.20.0;
  4         15  
2              
3             package JMAP::Tester::Result::Failure 0.109;
4             # ABSTRACT: what you get when your JMAP request utterly fails
5              
6 4     4   666 use Moo;
  4         10255  
  4         37  
7             with 'JMAP::Tester::Role::HTTPResult';
8              
9 4     4   3736 use namespace::clean;
  4         20405  
  4         52  
10              
11             #pod =head1 OVERVIEW
12             #pod
13             #pod This is the sort of worthless object you get back when your JMAP request fails.
14             #pod This class should be replaced, in most cases, by more useful classes in the
15             #pod future.
16             #pod
17             #pod It's got an C method. It returns false. It also has:
18             #pod
19             #pod =method ident
20             #pod
21             #pod An error identifier. May or may not be defined.
22             #pod
23             #pod =cut
24              
25 1     1 0 56 sub is_success { 0 }
26              
27             has ident => (is => 'ro', predicate => 'has_ident');
28              
29             1;
30              
31             __END__