Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Test::HTTP::Router(3) User Contributed Perl DocumentationTest::HTTP::Router(3)

NAME
       Test::HTTP::Router - Route Testing

SYNOPSIS
	 use Test::More;
	 use Test::HTTP::Router;
	 use HTTP::Router;

	 my $router = HTTP::Router->new;
	 $router->add_route('/'	=> (
	     conditions	=> { method => 'GET' },
	     params	=> { controller	=> 'Root', action => 'index' },
	 ));

	 match_ok $router, '/',	{ method => 'GET' };
	 params_ok $router, '/', { method => 'GET' }, {	controller => 'Root', action =>	'index'	};

METHODS
   path_ok($router, $path, $message?)
   path_not_ok($router,	$path, $message?)
   match_ok($router, $path, $conditions, $message?)
   match_not_ok($router, $path,	$conditions, $message?)
   params_ok($router, $path, $conditions, $params, $message?)
   params_not_ok($router, $path, $conditions, $params, $message?)
perl v5.32.1			  2010-03-01		 Test::HTTP::Router(3)

NAME | SYNOPSIS | METHODS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Test::HTTP::Router&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help