File: 100-internal--find-files-ignores-svn.t

package info (click to toggle)
libtest-compile-perl 3.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 324 kB
  • sloc: perl: 816; makefile: 2; sh: 1
file content (24 lines) | stat: -rw-r--r-- 406 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!perl

use strict;
use warnings;

use Test::More;
use Test::Compile::Internal;

my $internal = Test::Compile::Internal->new();


## Given

## When
my @files;
my @snvfiles;
@files = $internal->_find_files('t/scripts/');
@snvfiles = grep(/Ignore.pm/, @files);

## Then
ok(scalar @files > 0, 'Found some files ...');
ok(scalar @snvfiles == 0, "Didn't fild the file in the SVN dir");

$internal->done_testing