File Coverage

blib/lib/JMAP/Tester/Result/Failure.pm
Criterion Covered Total %
statement 8 9 88.8
branch n/a
condition n/a
subroutine 3 4 75.0
pod 0 1 0.0
total 11 14 78.5


line stmt bran cond sub pod time code
1 1     1   13 use v5.14.0;
  1         4  
2              
3             package JMAP::Tester::Result::Failure 0.103;
4             # ABSTRACT: what you get when your JMAP request utterly fails
5              
6 1     1   6 use Moo;
  1         2  
  1         5  
7             with 'JMAP::Tester::Role::HTTPResult';
8              
9 1     1   349 use namespace::clean;
  1         3  
  1         6  
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 0     0 0   sub is_success { 0 }
26              
27             has ident => (is => 'ro', predicate => 'has_ident');
28              
29             1;
30              
31             __END__