File: 00smoke.t

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

use_ok(HTTP::Server::Simple);
ok(HTTP::Server::Simple->can('new'), 'can new()');
my $s= HTTP::Server::Simple->new();
isa_ok($s,'HTTP::Server::Simple');
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()');