GenericSignals.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.0% 24 / 25 SCAR 6.9
CC
2
Cov
100%
abort_all
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« Connection/DEBUG.pm ↑ Summary Moose/Instrument/SCPI/Initiate.pm »
1 package Lab::GenericSignals;
2 9 $Lab::GenericSignals::VERSION = '3.881';
3 #ABSTRACT: Signal handling
4  
5 9 ▶use v5.20;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 9 ▶use sigtrap 'handler' => \&abort_all, qw(normal-signals error-signals);
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 sub abort_all {
13 9 ▶ foreach my $object ( @{Lab::Generic::OBJECTS} ) {
Subroutine abort_all: called CC=2 SCAR=6.9
Pod undocumented
14 21 $object->abort();
15 }
16 7 @{Lab::Generic::OBJECTS} = ();
17 7 exit;
18 }
19  
20 END {
21 9 ▶ abort_all();
Subroutine END: called CC=1 SCAR=0.0
22 }
23  
24 9 1;
25  
26 __END__
27  
28 =pod
29  
30 =encoding UTF-8
31  
32 =head1 NAME
33  
34 Lab::GenericSignals - Signal handling
35  
36 =head1 VERSION
37  
38 version 3.881
39  
40 =head1 COPYRIGHT AND LICENSE
41  
42 This software is copyright (c) 2023 by the Lab::Measurement team; in detail:
43  
44 Copyright 2014 Andreas K. Huettel
45 2015 Christian Butschkow
46 2016 Simon Reinhardt
47 2017 Andreas K. Huettel
48 2019 Simon Reinhardt
49 2020 Andreas K. Huettel
50  
51  
52 This is free software; you can redistribute it and/or modify it under
53 the same terms as the Perl 5 programming language system itself.
54  
55 =cut
« Connection/DEBUG.pm ↑ Summary Moose/Instrument/SCPI/Initiate.pm »