File: sftp.t

package info (click to toggle)
liburi-perl 5.30-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 948 kB
  • sloc: perl: 3,936; makefile: 4
file content (16 lines) | stat: -rw-r--r-- 285 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use strict;
use warnings;

use Test::More tests => 6;

use URI ();
my $uri;

$uri = URI->new("sftp://user\@ssh.example.com/path");

is($uri->scheme, 'sftp');
is($uri->host, 'ssh.example.com');
is($uri->port, 22);
is($uri->secure, 1);
is($uri->user, 'user');
is($uri->password, undef);