Sah/Schema/firefox/local_profile_name/default_first.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/firefox/local_profile_name.pm ↑ Summary Sah/Schema/firefox/profile_name.pm »
1 package Sah::Schema::firefox::local_profile_name::default_first;
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 = '2023-06-14'; # DATE
7 1 our $DIST = 'Sah-Schemas-Firefox'; # DIST
8 1 our $VERSION = '0.008'; # VERSION
9  
10 1 our $schema = ["firefox::local_profile_name" => {
11 summary => 'Firefox profile name, must exist in local Firefox installation, default to first',
12 'x.perl.default_value_rules' => ['Firefox::first_local_profile_name'],
13 description => <<'_',
14  
15 This is like `firefox::local_profile_name` schema, but adds a default value rule
16 to pick the first profile in the local Firefox installation.
17  
18 _
19 examples => [
20 {
21 value => '',
22 valid => 0,
23 test => 0,
24 },
25 {
26 summary => 'Assuming the profile named "default" exists in local Firefox installation and is the first one',
27 value => 'default',
28 valid => 1,
29 test => 0,
30 },
31 ],
32 }];
33  
34 1 1;
35 # ABSTRACT: Firefox profile name, must exist in local Firefox installation, default to first
36  
37 __END__
« Sah/Schema/firefox/local_profile_name.pm ↑ Summary Sah/Schema/firefox/profile_name.pm »