File: 08error.t

package info (click to toggle)
libconfig-apacheformat-perl 1.2-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 928 kB
  • sloc: perl: 410; makefile: 2
file content (22 lines) | stat: -rwxr-xr-x 454 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

use Test::More tests => 5;
BEGIN { use_ok('Config::ApacheFormat'); }

my $config = Config::ApacheFormat->new();
isa_ok($config, 'Config::ApacheFormat');

eval {
    $config->read("t/error.conf");
};
like($@, qr/^Error.*?error.conf.*?line 3/);

eval {
    $config->read("t/error_block.conf");
};
like($@, qr/^Error.*?error_block.conf.*?line 6/);

eval {
    $config->read("t/error_includer.conf");
};
like($@, qr/^Error.*?error_include.conf.*?line 4/);