File: 02_distdir.t

package info (click to toggle)
libtest-file-sharedir-perl 1.000005-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 440 kB
  • ctags: 45
  • sloc: perl: 505; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 510 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
22
23
24
25
26
27
28
29
30

use strict;
use warnings;

use Test::More 0.96;
use Test::Fatal;
use FindBin;
use Test::File::ShareDir
  -root  => "$FindBin::Bin/02_files",
  -share => { -dist => { 'Example-Dist' => 'share', } };

use File::ShareDir qw( dist_dir dist_file );

is(
  exception {
    note dist_dir('Example-Dist');
  },
  undef,
  'dist_dir doesn\'t bail as it finds the dir'
);

is(
  exception {
    note dist_file( 'Example-Dist', 'afile' );
  },
  undef,
  'dist_file doesn\'t bail as it finds the file'
);

done_testing;