File Coverage

blib/lib/Thunderhorse/Response.pm
Criterion Covered Total %
statement 22 22 100.0
branch 1 2 50.0
condition n/a
subroutine 5 5 100.0
pod 1 2 50.0
total 29 31 93.5


line stmt bran cond sub pod time code
1             package Thunderhorse::Response;
2             $Thunderhorse::Response::VERSION = '0.102';
3 21     21   372 use v5.40;
  21         429  
4 21     21   238 use Mooish::Base -standard;
  21         98  
  21         214  
5              
6 21     21   339156 use Gears::X::Thunderhorse;
  21         61  
  21         6453  
7              
8             extends 'PAGI::Response';
9             with 'Thunderhorse::Message';
10              
11 101         212 sub FOREIGNBUILDARGS ($class, %args)
12 101     101 0 42493 {
  101         231  
  101         188  
13             Gears::X::Thunderhorse->raise('no context for response')
14 101 50       423 unless $args{context};
15              
16 101         1042 return $args{context}->pagi->@[0, 2];
17             }
18              
19 101         152 sub update ($self, $scope, $receive, $send)
  101         169  
  101         142  
20 101     101 1 158 {
  101         137  
  101         133  
21 101         194 $self->{scope} = $scope;
22 101         279 $self->{send} = $send;
23             }
24              
25             __END__