lib/App/FuguBench/Keys.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 100% 25 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« bin/fugubench ↑ Summary
1 # ex:ts=8 sw=4:
2 # $OpenBSD$
3 #
4 # Copyright (c) 2026 Dick Olsson <hi@senzilla.io>
5 #
6 # Permission to use, copy, modify, and distribute this software for any
7 # purpose with or without fee is hereby granted, provided that the above
8 # copyright notice and this permission notice appear in all copies.
9 #
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17  
18 package App::FuguBench::Keys;
19 118 our $VERSION = '0.1.1';
20  
21 118 ▶use v5.34;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 118 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 118 ▶use experimental 'signatures';
Subroutine BEGIN: called CC=1 SCAR=0.0
24 118 ▶no feature qw(indirect multidimensional bareword_filehandles);
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26 # App::FuguBench::Keys - the embedded release keys.
27 #
28 # The program embeds the release public keys of the organization in
29 # one module (DIST-KEY-1). No file of the host then decides what a
30 # release trusts.
31 #
32 # The keys are those of deps/KEYS.txt of the org pack, and
33 # t/fugubench/keys.t holds this module to that file.
34 #
35 # The line order of that file is the trust order, and the current key
36 # comes first. A rotation is a release of the program, and this list
37 # follows the file. An installed program can therefore lack the key of
38 # a later release, and `update` then names the install command
39 # (DIST-KEY-3).
40 #
41 # DIST-KEY-2 gives this list to `update` alone. The `deps` verb
42 # verifies with the keys of the consumer, because a consumer decides
43 # what it trusts.
44 #
45 # A body is the 56 base64 characters of a signify public key: the
46 # second line of a .pub file. A public key carries no secret, so the
47 # list is source.
48  
49 118 ▶use constant KEYS => [ [
Subroutine BEGIN: called CC=1 SCAR=0.0
50 'fugureleng-1-release',
51 'RWRPSFq0TxlrugHBInkYJP2+ItDv0UH4Vf3HxXFrIKqTE6tDFibU7l1w'
52 ],
53 118 ];
54  
55 # App::FuguBench::Keys->keys:
56 # The [name, body] pair of each release key, in trust order.
57 1 ▶sub keys ($)
Subroutine keys: called CC=1 SCAR=0.0
Pod documented
58 {
59 1 return @{ +KEYS };
60 }
61  
62 118 1;
« bin/fugubench ↑ Summary