File: section.t

package info (click to toggle)
libapache-admin-config-perl 0.94-1.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, lenny, squeeze, stretch, wheezy
  • size: 184 kB
  • ctags: 69
  • sloc: perl: 858; makefile: 3
file content (24 lines) | stat: -rw-r--r-- 437 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
use strict;
use Test;
plan test => 7;

use Apache::Admin::Config;
ok(1);

my $apache = new Apache::Admin::Config ('t/httpd.conf-dist');
ok(defined $apache);

my @seclist = $apache->section;
ok(@seclist, 6);

my @secvals = $apache->section('directory');
ok(@secvals, 4);

@secvals = $apache->section('DirectorY');
ok(@secvals, 4);

my $obj = $secvals[0];
ok(defined $obj);

my $root = $apache->section(directory=>'/');
ok(defined $root);