File: rsync.t

package info (click to toggle)
liburi-perl 1.64-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 608 kB
  • ctags: 303
  • sloc: perl: 4,914; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 390 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!perl -w

use strict;
use warnings;

print "1..4\n";

use URI;

my $u = URI->new('rsync://gisle@perl.com/foo/bar');

print "not " unless $u->user eq "gisle";
print "ok 1\n";

print "not " unless $u->port eq 873;
print "ok 2\n";

print "not " unless $u->path eq "/foo/bar";
print "ok 3\n";

$u->port(8730);

print "not " unless $u eq 'rsync://gisle@perl.com:8730/foo/bar';
print "ok 4\n";