Graphite/Async.pm

filter: Statementstmt 90.9% 20 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 6 / 8 Podpod n/a totaltotal 86.6% 26 / 30 CC 1 SCAR 2.2
CC
1
Cov
91%
__ANON__
2.0
_build__loop
2.0
BEGIN
1.0
CRAP 1.2
« Graphite/HTTPClient.pm ↑ Summary Graphite/JSONCodec.pm »
1 package Net::Async::Graphite::Async;
2  
3 2 our $VERSION = '0.1_1';
4  
5 =head1 NAME
6  
7 Net::Async::Graphite::Async - The IO::Async loop.
8  
9 =head1 SYNOPSIS
10  
11 with 'Net::Async::Graphite::Async';
12  
13 =head1 DESCRIPTION
14  
15 Don't use this module directly, use L<Net::Async::Graphite> and create
16 objects using its C<new> method in the normal way. Those objects will
17 include the functionality documented here.
18  
19 This role brings the capacity to interact with the main
20 L<IO::Async::Loop> object.
21  
22 =head1 BUGS
23  
24 This is probably pointless and should at least be renamed.
25  
26 =cut
27  
28 3 ▶use v5.14;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 3 ▶use strictures 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
30 3 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
31 3 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
32  
33 3 ▶use IO::Async::Loop;
Subroutine BEGIN: called CC=1 SCAR=0.0
34 3 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
35  
36 =head1 ROLE
37  
38 This role is probably pointless now that this module isn't part of a
39 larger project.
40  
41 =head1 ATTRIBUTES
42  
43 =over
44  
45 =item _loop (read-only)
46  
47 An internal reference to the L<IO::Async> loop.
48  
49 =cut
50  
51 0 ▶has _loop => is => lazy => init_arg => undef, builder => sub {
Subroutine _build__loop: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=1 SCAR=6.9
52 0 IO::Async::Loop->new;
53 2 };
54  
55 2 1;
56  
57 =back
58  
59 =head1 SEE ALSO
60  
61 L<Net::Async::Graphite>
62  
63 L<IO::Async>
64  
65 L<Moo>
66  
67 =head1 AUTHOR
68  
69 Matthew King <matthew.king@cloudbeds.com>
70  
71 =cut
« Graphite/HTTPClient.pm ↑ Summary Graphite/JSONCodec.pm »