File: 05ext.pm

package info (click to toggle)
libapache-ssllookup-perl 2.00-04-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 216 kB
  • sloc: perl: 209; makefile: 11; ansic: 10; sh: 5
file content (37 lines) | stat: -rwxr-xr-x 586 bytes parent folder | download | duplicates (4)
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
36
37
package TestSSL::05ext;

use strict;
use warnings FATAL => qw(all);

use Apache::Test qw(-withtestmore);

use Apache2::Const -compile => qw(OK);

sub handler {

  my $r = shift;

  plan $r, tests => 4;

  {
    use_ok('Apache::SSLLookup');
  }

  {
    can_ok('Apache::SSLLookup', 'ext_lookup');
  }

  {
    $r = Apache::SSLLookup->new($r);

    ok(!$r->ext_lookup('060406142524Z'),
       'nothing to find on the server when not using ssl');

    ok(!$r->ext_lookup('060406142524Z'),
       'nothing to find on the client when not using ssl');
  }

  return Apache2::Const::OK;
}

1;