blib/lib/IO/Async/Protocol/Stream.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 16 | 22 | 72.7 |
line | true | false | branch |
---|---|---|---|
127 | 5 | 31 | if exists $params{$_} |
130 | 2 | 10 | if (not exists $params{'transport'} and my $handle = delete $params{'handle'}) |
137 | 5 | 7 | if ($self->loop) |
138 | 0 | 5 | unless $self->can_event("on_read") |
147 | 0 | 5 | unless $self->can_event("on_read") |
160 | 0 | 9 | unless my $self = shift() |
164 | 0 | 2 | unless my $self = shift() |
168 | 0 | 1 | unless my $self = shift() |
204 | 1 | 2 | if (ref $data eq "CODE") |
208 | 1 | 2 | if ($args{'on_flush'}) |
212 | 0 | 3 | unless my $transport = $self->transport |