Graphite/JSONCodec.pm

filter: Statementstmt 95.4% 21 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod n/a totaltotal 93.3% 28 / 30 CC 1 SCAR 0.3
CC
1
Cov
95%
__ANON__
1.1
_build__json
1.1
BEGIN
1.0
CRAP 1.0
« Graphite/Async.pm ↑ Summary Graphite.pm »
1 package Net::Async::Graphite::JSONCodec;
2  
3 1 our $VERSION = '0.1_1';
4  
5 3 ▶use v5.14;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use strictures 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 3 ▶use JSON ();
Subroutine BEGIN: called CC=1 SCAR=0.0
11 3 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 =item _json (read-only)
14  
15 A L<JSON> codec object.
16  
17 =cut
18  
19 4 ▶has _json => is => lazy => init_arg => undef, builder => sub {
Subroutine __ANON__: called CC=1 SCAR=1.2
Subroutine _build__json: not called CC=1 SCAR=1.2
20 0 JSON->new->utf8->allow_blessed(1)
21 1 };
22  
23 1 1;
« Graphite/Async.pm ↑ Summary Graphite.pm »