Sah/Schema/unix/signal.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« Sah/Schema/unix/pid.pm ↑ Summary Sah/Schema/unix/uid.pm »
1 package Sah::Schema::unix::signal;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
6 1 our $DATE = '2024-11-15'; # DATE
7 1 our $DIST = 'Sah-SchemaBundle-Unix'; # DIST
8 1 our $VERSION = '0.022'; # VERSION
9  
10 1 our $schema = ['str' => {
11 'summary' => 'Unix signal name (e.g. TERM or KILL) or number (9 or 15)',
12 match => '\A(?:[A-Z]+[0-9]*|[1-9][0-9]*)\z',
13 examples => [
14 # valid signals found in most Unix systems. included here for tab
15 # completion hints.
16 qw/HUP INT QUIT ILL ABRT FPE KILL SEGV PIPE ALRM TERM USR1 USR2 CHLD CONT STOP TSTP TTIN TTOU/,
17 1..15,
18  
19 # other tests
20 {data=>'', valid=>0},
21 ],
22 }];
23  
24 1 1;
25 # ABSTRACT: Unix signal name (e.g. TERM or KILL) or number (9 or 15)
26  
27 __END__
« Sah/Schema/unix/pid.pm ↑ Summary Sah/Schema/unix/uid.pm »