File: 02_config_tiny.t

package info (click to toggle)
libmodule-extract-perl 0.01-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 172 kB
  • sloc: perl: 930; makefile: 2
file content (33 lines) | stat: -rw-r--r-- 781 bytes parent folder | download | duplicates (4)
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
26
27
28
29
30
31
32
33

#!/usr/bin/perl -w

use strict;
use File::Spec::Functions ':ALL';
BEGIN {
	$|  = 1;
	$^W = 1;
}

use Test::More tests => 8;
use Module::Extract;

my $tarball = catfile( 't', 'dists', 'Config-Tiny-2.09.tar.gz' );
ok( -f $tarball, "Tarball file $tarball exists"      );
ok( -r $tarball, "Tarball file $tarball is readable" );





#####################################################################
# Create the handle

SCOPE: {
	my $mod = Module::Extract->new( dist_file => $tarball );
	isa_ok( $mod, 'Module::Extract' );
	is( $mod->dist_file, $tarball, '->dist_file ok' );
	is( $mod->dist_type, 'tgz', '->dist_type ok' );
	ok( -d $mod->dist_dir, '->dist_dir exists' );
	ok( -f $mod->file_path('MANIFEST'), '->file_path ok' );
	ok( -d $mod->dir_path('t'),   '->dir_path ok' );
}