File: isin.t

package info (click to toggle)
libapache-admin-config-perl 0.95-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 256 kB
  • sloc: perl: 858; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 469 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
use strict;
use Test;
plan test => 9;

use Apache::Admin::Config;

my $conf = new Apache::Admin::Config;

my $sec1 = $conf->add_section(test=>1);
ok(defined $sec1);
my $sec2 = $sec1->add_section(test=>2);
ok(defined $sec2);
my $sec3 = $sec2->add_section(test=>2);
ok(defined $sec3);

ok($sec1->isin($conf));
ok(!$sec2->isin($conf));
ok(!$sec3->isin($conf));
ok($sec1->isin($conf, '-recursif'));
ok($sec2->isin($conf, '-recursif'));
ok($sec3->isin($conf, '-recursif'));