File Coverage

blib/lib/Alice/HTTP/Stream.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Alice::HTTP::Stream;
2              
3             our $NEXT_ID = 1;
4              
5 2     2   1755 use Any::Moose;
  2         7  
  2         91  
6              
7             has closed => (
8             is => 'rw',
9             default => 0,
10             );
11              
12             has on_error => (
13             is => 'ro',
14             required => 1,
15             );
16              
17             has is_xhr => (
18             is => 'ro',
19             default => 1,
20             );
21              
22             has id => (
23             is => 'rw',
24             default => sub { $NEXT_ID++ }
25             );
26              
27             __PACKAGE__->meta->make_immutable;
28              
29             1;