File: 4_perl5_11.t

package info (click to toggle)
libnet-sftp-foreign-perl 1.93%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 496 kB
  • sloc: perl: 5,676; makefile: 7
file content (24 lines) | stat: -rw-r--r-- 432 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/perl

use strict;
use warnings;

use Test::More;

use lib "./t";
use common;

plan skip_all => "tests not supported on inferior OS"
    if (is_windows and eval "no warnings; getlogin ne 'salva'");

my @new_args = new_args;

plan tests => 2;

use Net::SFTP::Foreign;

my $sftp = Net::SFTP::Foreign->new(@new_args);
my $fn = File::Spec->rel2abs('t/data.txd');

ok(my $fh = $sftp->open($fn), "open");
ok (!eof($fh), "eof");