lib/Beekeeper/JSONRPC/Response.pm

filter: Statementstmt 76.9% 10 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 75.0% 3 / 4 totaltotal 73.9% 17 / 23 CC 1 SCAR 2.9
CC
1
Cov
77%
new
2.0
id
2.0
BEGIN
1.0
CRAP 1.3
« lib/Beekeeper/JSONRPC.pm ↑ Summary lib/Beekeeper/AnyEvent.pm »
1 package Beekeeper::JSONRPC::Response;
2  
3 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 11 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 11 our $VERSION = '0.10';
7  
8  
9 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
10 0 my $class = shift;
11  
12 0 bless {
13 jsonrpc => '2.0',
14 result => undef,
15 id => undef,
16 @_
17 }, $class;
18 }
19  
20 40 ▶sub result { $_[0]->{result} }
Subroutine result: called CC=1 SCAR=0.0
Pod documented
21 0 ▶sub id { $_[0]->{id} }
Subroutine id: not called CC=1 SCAR=6.9
Pod documented
22  
23 13 ▶sub success { 1 }
Subroutine success: called CC=1 SCAR=0.0
Pod documented
24  
25 11 1;
26  
27 __END__
« lib/Beekeeper/JSONRPC.pm ↑ Summary lib/Beekeeper/AnyEvent.pm »