File: 05_testfile.t

package info (click to toggle)
libmodule-cpants-analyse-perl 1.02-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 312 kB
  • sloc: perl: 2,192; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 394 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use strict;
use warnings;

use Test::More;
use Test::FailWarnings;

use Module::CPANTS::Analyse;
use File::Basename;

my $a=Module::CPANTS::Analyse->new({
    dist=>'D/DO/DOMM/Foo-Bar-1.05.tgz',
});

my $td=$a->testdir;
ok(-e $td,"testdir $td created");

$td=basename($td);
like($a->testfile,qr/$td/,"testdir in testfile");
like($a->testfile,qr/Foo-Bar/,"filename in testfile");

done_testing;