File: empty.t

package info (click to toggle)
libcgi-application-plugin-configauto-perl 1.33-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 100 kB
  • sloc: perl: 85; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 387 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use Test::More qw/no_plan/;
BEGIN { use_ok('CGI::Application::Plugin::ConfigAuto') };

use lib './t';
use strict;

$ENV{CGI_APP_RETURN_ONLY} = 1;

use TestAppBasic;
my $t1_obj = TestAppBasic->new();
eval { $t1_obj->cfg_file('t/empty_config.pl'); 
       $t1_obj->cfg();
};

like ($@, qr/\QNo configuration found. Check your config file(s) (check the syntax if this is a perl format)/);