File: 02_error.t

package info (click to toggle)
libcgi-application-plugin-tt-perl 1.05%2B~cs1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 440 kB
  • sloc: perl: 806; makefile: 17
file content (15 lines) | stat: -rw-r--r-- 244 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use Test::More tests => 1;

use lib './t';
use strict;

$ENV{CGI_APP_RETURN_ONLY} = 1;

use CGI;
use TestAppError;
my $t1_obj = TestAppError->new();

my $t1_output = eval { $t1_obj->run() };

like($@, qr/parse error/, 'template parse error');