| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Test::Mojo::Most; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 1 |  |  | 1 |  | 973604 | use strict; | 
|  | 1 |  |  |  |  | 3 |  | 
|  | 1 |  |  |  |  | 39 |  | 
| 4 | 1 |  |  | 1 |  | 5 | use warnings; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 28 |  | 
| 5 |  |  |  |  |  |  |  | 
| 6 |  |  |  |  |  |  | # if we use Mojo::Base we get redfined warnings, so use parent instead | 
| 7 | 1 |  |  | 1 |  | 480 | use parent 'Test::Mojo::Session'; | 
|  | 1 |  |  |  |  | 263 |  | 
|  | 1 |  |  |  |  | 4 |  | 
| 8 | 1 |  |  | 1 |  | 6903 | use parent 'Test::Mojo::More'; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 6 |  | 
| 9 | 1 |  |  | 1 |  | 2157 | use parent 'Test::Mojo::Trim'; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 4 |  | 
| 10 |  |  |  |  |  |  |  | 
| 11 |  |  |  |  |  |  | our $VERSION = '0.06'; | 
| 12 |  |  |  |  |  |  |  | 
| 13 |  |  |  |  |  |  | sub _cookie { | 
| 14 | 3 |  |  | 3 |  | 40044 | my ( $self,$name ) = @_; | 
| 15 |  |  |  |  |  |  |  | 
| 16 | 3 |  |  |  |  | 90 | my @cookies = $self->ua->cookie_jar->all; | 
| 17 | 3 | 50 |  |  |  | 144 | @cookies = @{$cookies[0]} if ref $cookies[0] eq 'ARRAY'; | 
|  | 3 |  |  |  |  | 7 |  | 
| 18 |  |  |  |  |  |  |  | 
| 19 | 3 |  |  |  |  | 9 | foreach my $cookie ( @cookies ) { | 
| 20 | 4 | 100 |  |  |  | 109 | return $cookie if $cookie->name eq $name; | 
| 21 |  |  |  |  |  |  | } | 
| 22 | 1 |  |  |  |  | 12 | return; | 
| 23 |  |  |  |  |  |  | } | 
| 24 |  |  |  |  |  |  |  | 
| 25 |  |  |  |  |  |  | sub _session { | 
| 26 |  |  |  |  |  |  | # _extract_session from Test::Mojo::Session | 
| 27 | 2 |  |  | 2 |  | 858 | return shift->_extract_session; | 
| 28 |  |  |  |  |  |  | } | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  | sub _flash { | 
| 31 | 2 | 50 |  | 2 |  | 2489 | return $_[0]->app->flash( $_[1] ) if @_ == 2; | 
| 32 | 0 |  |  |  |  | 0 | {}; | 
| 33 |  |  |  |  |  |  | } | 
| 34 |  |  |  |  |  |  |  | 
| 35 | 2 |  |  | 2 | 1 | 3008 | sub cookie_hashref { return { map { $_->name => $_->value } @{ $_[0]->tx->res->cookies } } } | 
|  | 4 |  |  |  |  | 2309 |  | 
|  | 2 |  |  |  |  | 76 |  | 
| 36 | 1 |  | 50 | 1 | 1 | 19164 | sub flash_hashref  { return $_[0]->_session->{flash} || $_[0]->_session->{new_flash} || {} } | 
| 37 |  |  |  |  |  |  |  | 
| 38 |  |  |  |  |  |  | __END__ |