Skip to content

Commit

Permalink
Merge pull request #2 from bayashi/improve-pod
Browse files Browse the repository at this point in the history
Add xt test example in POD
  • Loading branch information
bayashi committed Mar 1, 2020
2 parents 76f1448 + 7bc9a2c commit 0d3f43e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/File/Find/Rule/ConflictMarker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,23 @@ File::Find::Rule::ConflictMarker - Conflict markers finder
my @files = File::Find::Rule->conflict_marker->relative->in($dir);
=head2 FOR TEST EXAMPLE
It might be helpful as xt/no_conflict.t
use Test::More;
eval "use File::Find::Rule::ConflictMarker;";
plan skip_all => "skip the no conflict test because $@" if $@;
my @files = File::Find::Rule->name('*.pm', '*.t')->conflict_marker->in('lib', 't', 'xt');
ok( scalar(@files) == 0 )
or die join("\t", map { "'$_' has conflict markers." } @files);
done_testing;
=head1 DESCRIPTION
Expand Down

0 comments on commit 0d3f43e

Please sign in to comment.