File Coverage

blib/lib/HTTP/Engine/Role/ResponseWriter/ResponseLine.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 0 1 0.0
total 11 12 91.6


line stmt bran cond sub pod time code
1             package HTTP::Engine::Role::ResponseWriter::ResponseLine;
2 1     1   604 use Any::Moose '::Role';
  1         3  
  1         5  
3 1     1   359 use HTTP::Status ();
  1         2  
  1         70  
4              
5             sub response_line {
6 6     6 0 10 my ($self, $res) = @_;
7              
8 6         58 join(" ", $res->protocol, $res->status, HTTP::Status::status_message($res->status));
9             }
10              
11             1;