File: 00smoke.t

package info (click to toggle)
libhttp-server-simple-mason-perl 0.14-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 204 kB
  • sloc: perl: 1,280; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
use Test::More tests=>8;

use_ok(HTTP::Server::Simple::Mason);
ok(HTTP::Server::Simple::Mason->can('new'), 'can new()');
my $s= HTTP::Server::Simple::Mason->new();
isa_ok($s,'HTTP::Server::Simple::Mason');
is($s->port(),8080,'Defaults to 8080');
is($s->port(13432),13432,'Can change port');
is($s->port(),13432,'Change persists');
ok($s->can('print_banner'), 'can print_banner()');
ok($s->can('run'), 'can run()');