Tamil/Authority/Task.pm untested

filter: Statementstmt 0.0% 0 / 29 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 40 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Koha::Contrib::Tamil::Authority::Task;
2 $Koha::Contrib::Tamil::Authority::Task::VERSION = '0.074';
3 # ABSTRACT: Base class for managing authorities manipulations
4 use Moose;
5  
6 extends 'AnyEvent::Processor';
7  
8 use 5.010;
9 use utf8;
10 use Carp;
11 use YAML qw( LoadFile );
12  
13 has conf_authorities => ( is => 'rw', isa => 'ArrayRef' );
14  
15 has conf_file => (
16 is => 'rw',
17 isa => 'Str',
18 trigger => sub {
19 my ($self, $file) = @_;
20 unless ( -e $file ) {
21 croak "File doesn't exist: " . $file;
22 }
23 my @authorities = LoadFile( $file ) or croak "Load conf auth impossible";
24 $self->conf_authorities( \@authorities );
25 }
26 );
27  
28  
29 no Moose;
30 __PACKAGE__->meta->make_immutable;
31 1;
32  
33 __END__