File: apache2_reload.t

package info (click to toggle)
libcgi-application-plugin-autorunmode-perl 0.18-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 148 kB
  • sloc: perl: 910; makefile: 2
file content (35 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!perl -T

use CGI;
use lib 't/mocklibs';
use Apache2::Reload;
use Test::More tests => 1;
use strict;
use warnings;




{
	my $testname = "can redeclare start and error modes with Apache2::Reload";
	

{
	package MyTestApp;
	use base 'CGI::Application';
	use CGI::Application::Plugin::AutoRunmode
		qw [ cgiapp_prerun ]; # for CGI::App 3 compatibility
 	sub mode1 : StartRunmode {
	 }
	sub mode2 : StartRunmode {
	 }
	sub mode3 : ErrorRunmode {
	 }
	sub mode4 : ErrorRunmode {
	 }
	 
}
	ok(1);
}