1Apache::TestHandler(3)User Contributed Perl DocumentationApache::TestHandler(3)
2
3
4

NAME

6       Apache::TestHandler - a few response handlers and helpers
7

SYNOPSIS

9           package My::Test;
10           use Apache::TestHandler ();
11           sub handler {
12               my ($r) = @_;
13               my $result = do_my_test;
14               Apache::TestHandler::ok1 $r, $result;
15           }
16
17           sub handler2 {
18               my ($r) = @_;
19               my $result = do_my_test;
20               Apache::TestHandler::ok $r, $result;
21           }
22

DESCRIPTION

24       "Apache::TestHandler" provides 2 very simple response handler.
25

FUNCTIONS

27       ok $r, $boolean
28           The handler simply prints out "ok" or "not ok" depending on the
29           optional $boolean parameter.
30
31           If $boolean is omitted "true" is assumed.
32
33       ok1 $r, $boolean
34           This handler implements a simple response-only test. It can be used
35           on its own to check if for a certain URI the response phase is
36           reached. Or it can be called like a normal function to print out
37           the test result. The client side is automatically created as
38           described in
39           <http://perl.apache.org/docs/general/testing/testing.html#Developing_Response_only_Part_of_a_Test>.
40
41           $boolean is optional. If omitted "true" is assumed.
42
43       same_interp_counter
44       same_interp_fixup
45           TODO
46

SEE ALSO

48       The Apache-Test tutorial:
49       <http://perl.apache.org/docs/general/testing/testing.html>.
50
51       Apache::Test.
52

AUTHOR

54       Doug MacEachern, Geoffrey Young, Stas Bekman, Torsten Förtsch and
55       others.
56
57       Questions can be asked at the test-dev <at> httpd.apache.org list For
58       more information see: http://httpd.apache.org/test/.
59
60
61
62perl v5.32.0                      2020-07-28            Apache::TestHandler(3)
Impressum