File: test-app.t

package info (click to toggle)
libmodule-starter-plugin-cgiapp-perl 0.44-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 524 kB
  • sloc: perl: 1,119; makefile: 6
file content (22 lines) | stat: -rw-r--r-- 359 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl

# Test application functionality
use strict;
use warnings;
use Test::More tests => 1;
use Test::WWW::Mechanize::CGIApp;
use <tmpl_var main_module>;

my $mech = Test::WWW::Mechanize::CGIApp->new;

$mech->app(
    sub {
        my $app = <tmpl_var main_module>->new(PARAMS => {

        });
        $app->run();
    }
);

$mech->get_ok(q{/});