File: 03.uscan.t

package info (click to toggle)
pkg-components 0.6
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 236 kB
  • ctags: 15
  • sloc: perl: 423; sh: 157; makefile: 16
file content (17 lines) | stat: -rw-r--r-- 506 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use Test::More tests => 2;
use Debian::Parse::Uscan;
use Perl6::Slurp;
use Test::Deep;

my $parser = Debian::Parse::Uscan->new;
isa_ok($parser, 'Debian::Parse::Uscan');

my $output = slurp 't/data/uscan.txt';
cmp_deeply($parser->parse($output),
    {
        local_version => '0.20',
        remote_version => '0.20',
        downloaded_file => 'CGI-Application-Plugin-Authentication-0.20.tar.gz',
        symlink => 'libcgi-application-plugin-authentication-perl_0.20.orig.tar.gz',
    },
    'results');