File tree Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ use strict;
2
+ use warnings;
3
+
4
+ use Test::More tests => 6;
5
+
6
+ use URI ();
7
+ my $uri ;
8
+
9
+ $uri = URI-> new(" scp://user\@ ssh.example.com/path" );
10
+
11
+ is($uri -> scheme, ' scp' );
12
+ is($uri -> host, ' ssh.example.com' );
13
+ is($uri -> port, 22);
14
+ is($uri -> secure, 1);
15
+ is($uri -> user, ' user' );
16
+ is($uri -> password, undef );
Original file line number Diff line number Diff line change
1
+ use strict;
2
+ use warnings;
3
+
4
+ use Test::More tests => 6;
5
+
6
+ use URI ();
7
+ my $uri ;
8
+
9
+ $uri = URI-> new(" sftp://user\@ ssh.example.com/path" );
10
+
11
+ is($uri -> scheme, ' sftp' );
12
+ is($uri -> host, ' ssh.example.com' );
13
+ is($uri -> port, 22);
14
+ is($uri -> secure, 1);
15
+ is($uri -> user, ' user' );
16
+ is($uri -> password, undef );
Original file line number Diff line number Diff line change
1
+ use strict;
2
+ use warnings;
3
+
4
+ use Test::More tests => 6;
5
+
6
+ use URI ();
7
+ my $uri ;
8
+
9
+ $uri = URI-> new(" ssh://user\@ ssh.example.com/path" );
10
+
11
+ is($uri -> scheme, ' ssh' );
12
+ is($uri -> host, ' ssh.example.com' );
13
+ is($uri -> port, 22);
14
+ is($uri -> secure, 1);
15
+ is($uri -> user, ' user' );
16
+ is($uri -> password, undef );
You can’t perform that action at this time.
0 commit comments