blib/lib/XT/Files/Plugin/Excludes.pm untested

filter: Statementstmt 0.0% 0 / 25 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 33 CC 2 SCAR 12.0
CC
2
Cov
0%
run
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.3
1 package XT::Files::Plugin::Excludes;
2  
3 use 5.006;
4 use strict;
5 use warnings;
6  
7 our $VERSION = '0.001';
8  
9 use parent 'XT::Files::Plugin';
10  
11 sub run {
12 my ( $self, $args ) = @_;
13  
14 my $xtf = $self->xtf;
15  
16 ARG:
17 for my $arg ( @{$args} ) {
18 my ( $key, $value ) = @{$arg};
19  
20 if ( $key eq 'exclude' ) {
21 $xtf->exclude($value);
22 next ARG;
23 }
24  
25 $self->log_fatal("Invalid configuration option '$key = $value' for plugin 'Excludes'");
26 }
27  
28 return;
29 }
30  
31 1;
32  
33 __END__