File: 02_prefix.t

package info (click to toggle)
libplack-builder-conditionals-perl 0.05-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 116 kB
  • sloc: perl: 140; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 193 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
use strict;
use Test::More tests => 2;

use Plack::Builder::Conditionals -prefix => 's';

ok( s_path('/')->({ PATH_INFO => '/' }) );

eval {
    path('/')->({ PATH_INFO => '/' });
};
ok( $@ );