File Coverage

blib/lib/Ryu/Async/Client.pm
Criterion Covered Total %
statement 8 9 88.8
branch n/a
condition n/a
subroutine 4 5 80.0
pod 2 3 66.6
total 14 17 82.3


line stmt bran cond sub pod time code
1             package Ryu::Async::Client;
2              
3 6     6   44 use strict;
  6         18  
  6         202  
4 6     6   32 use warnings;
  6         12  
  6         839  
5              
6             our $VERSION = '0.020'; # VERSION
7             our $AUTHORITY = 'cpan:TEAM'; # AUTHORITY
8              
9             =head1 NAME
10              
11             Ryu::Async::Client - abstraction for stream or packet-based I/O clients
12              
13             =cut
14              
15 1     1 0 15 sub new { bless { @_[1..$#_] }, $_[0] }
16              
17             =head2 incoming
18              
19             A L which expects an event whenever there is a new packet received from the
20             remote.
21              
22             =cut
23              
24 0     0 1 0 sub incoming { shift->{incoming} }
25              
26             =head2 outgoing
27              
28             A L which can be used to L an event for each outgoing packet.
29              
30             =cut
31              
32 1     1 1 8 sub outgoing { shift->{outgoing} }
33              
34             1;
35              
36             =head1 AUTHOR
37              
38             Tom Molesworth
39              
40             =head1 LICENSE
41              
42             Copyright Tom Molesworth 2011-2021. Licensed under the same terms as Perl itself.
43