Reply/Plugin/Interrupt.pm

filter: Statementstmt 54.5% 12 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 42.8% 3 / 7 Podpod 100% 2 / 2 totaltotal 54.8% 17 / 31 CC 1 SCAR 4.5
CC
1
Cov
55%
compile
2.0
__ANON__
2.0
execute
2.0
CRAP 1.6
« Reply/Plugin/LoadClass.pm ↑ Summary Reply/Plugin/Hints.pm »
1 package Reply::Plugin::Interrupt;
2 1 our $AUTHORITY = 'cpan:DOY';
3 1 $Reply::Plugin::Interrupt::VERSION = '0.42';
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 # ABSTRACT: allows using Ctrl+C to interrupt long-running lines
7  
8 1 ▶use base 'Reply::Plugin';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10  
11 0 ▶sub compile {
Subroutine compile: not called CC=1 SCAR=6.9
Pod documented
12 0 my $self = shift;
13 0 my ($next, @args) = @_;
14  
15 0 ▶ local $SIG{INT} = sub { die "Interrupted" };
Subroutine __ANON__: not called CC=1 SCAR=6.9
16 0 $next->(@args);
17 }
18  
19 0 ▶sub execute {
Subroutine execute: not called CC=1 SCAR=6.9
Pod documented
20 0 my $self = shift;
21 0 my ($next, @args) = @_;
22  
23 0 ▶ local $SIG{INT} = sub { die "Interrupted" };
Subroutine __ANON__: not called CC=1 SCAR=6.9
24 0 $next->(@args);
25 }
26  
27 1 1;
28  
29 __END__
« Reply/Plugin/LoadClass.pm ↑ Summary Reply/Plugin/Hints.pm »