File Coverage

blib/lib/JMAP/Tester/Result/Failure.pm
Criterion Covered Total %
statement 11 12 91.6
branch n/a
condition n/a
subroutine 4 5 80.0
pod 0 1 0.0
total 15 18 83.3


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