File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -11,19 +11,18 @@ BEGIN {
11
11
use Dancer2::Core::Cookie;
12
12
use Dancer2::Core::Request;
13
13
14
- diag " If you want extra speed, install HTTP::XSCookies"
15
- if !Dancer2::Core::Cookie::_USE_XS;
14
+ if ( Dancer2::Core::Cookie::_USE_XS ) {
16
15
17
- subtest ' with HTTP::XSCookies' => \&all_tests
18
- if Dancer2::Core::Cookie::_USE_XS;
16
+ subtest ' with HTTP::XSCookies' => \&all_tests;
19
17
20
- if ( Dancer2::Core::Cookie::_USE_XS ) {
21
18
no warnings ' redefine' ;
22
19
*Dancer2::Core::Cookie::to_header = \&Dancer2::Core::Cookie::pp_to_header;
23
20
}
21
+ else {
22
+ diag " If you want extra speed, install HTTP::XSCookies" ;
23
+ }
24
24
25
- subtest ' w/o HTTP::XSCookies' => \&all_tests
26
- if Dancer2::Core::Cookie::_USE_XS;
25
+ subtest ' w/o HTTP::XSCookies' => \&all_tests;
27
26
28
27
sub all_tests {
29
28
my $cookie = Dancer2::Core::Cookie-> new( name => " foo" );
You can’t perform that action at this time.
0 commit comments