WebSocket/Result/Failure.pm

filter: Statementstmt 93.3% 14 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 85.7% 18 / 21 CC 1 SCAR 1.8
CC
1
Cov
93%
is_success
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« WebSocket/Response.pm ↑ Summary
1 1 ▶use v5.10.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package JMAP::Tester::WebSocket::Result::Failure 0.006;
5 # ABSTRACT: what you get when your JMAP request utterly fails
6  
7 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 with 'JMAP::Tester::WebSocket::Role::WebSocketResult';
9  
10 1 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
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<is_success> 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 ▶sub is_success { 0 }
Subroutine is_success: not called CC=1 SCAR=6.9
Pod undocumented
27  
28 1 has ident => (is => 'ro', predicate => 'has_ident');
29  
30 1 1;
31  
32 __END__
« WebSocket/Response.pm ↑ Summary