File: 02-new.t

package info (click to toggle)
libnet-tftp-perl 0.1901-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 116 kB
  • sloc: perl: 557; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 281 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
use Test::More;
use Test::Warn;

use Net::TFTP;

# we test for warnings
$^W = 1;

my $tftp = Net::TFTP->new();
warnings_are { $tftp->get('somefile','t/files/directory') } [], 'Warnings for new' ;
is($tftp->{error}, 'No hostname given', 'Missing hostname detected');

done_testing;