Graphite/Async.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 27 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Net::Async::Graphite::Async;
2  
3 our $VERSION = '0.0_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 use v5.14;
29 use strictures 2;
30 use Moo::Role;
31 use Carp;
32  
33 use IO::Async::Loop;
34 use namespace::clean;
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 has _loop => is => lazy => init_arg => undef, builder => sub {
52 IO::Async::Loop->new;
53 };
54  
55 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