File Coverage

blib/lib/JMAP/Tester/WebSocket/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   12 use v5.10.0;
  1         4  
2 1     1   5 use warnings;
  1         2  
  1         46  
3              
4             package JMAP::Tester::WebSocket::Result::Failure;
5             # ABSTRACT: what you get when your JMAP request utterly fails
6             $JMAP::Tester::WebSocket::Result::Failure::VERSION = '0.001';
7 1     1   5 use Moo;
  1         2  
  1         5  
8             with 'JMAP::Tester::WebSocket::Role::WebSocketResult';
9              
10 1     1   396 use namespace::clean;
  1         3  
  1         5  
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__