Sah/SchemaR/firefox/local_profile_name/default_first.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 10 / 10 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« Sah/SchemaR/firefox/local_profile_name.pm ↑ Summary Sah/SchemaR/firefox/profile_name.pm »
1 ## no critic: TestingAndDebugging::RequireStrict
2 package Sah::SchemaR::firefox::local_profile_name::default_first;
3  
4 1 our $DATE = '2023-06-14'; # DATE
5 1 our $VERSION = '0.008'; # VERSION
6  
7 1 our $rschema = do{my$var={base=>"firefox::local_profile_name",clsets_after_base=>[{description=>"\nThis is like `firefox::local_profile_name` schema, but adds a default value rule\nto pick the first profile in the local Firefox installation.\n\n",examples=>[{test=>0,valid=>0,value=>""},{summary=>"Assuming the profile named \"default\" exists in local Firefox installation and is the first one",test=>0,valid=>1,value=>"default"}],summary=>"Firefox profile name, must exist in local Firefox installation, default to first","x.perl.default_value_rules"=>["Firefox::first_local_profile_name"]}],clsets_after_type=>[{description=>"\nThis is currently just `str` with a minimum length of 1, but adds a completion\nrule to complete from list of profiles from local Firefox installation.\n\n",examples=>[{valid=>0,value=>""},{valid=>1,value=>"standard"}],min_len=>1,summary=>"Firefox profile name","x.completion"=>"firefox_profile_name"},{description=>"\nThis is like the `firefox::profile_name` schema, but adds a check (in\n`prefilter` clause) that the profile must exist in local Firefox installation.\n\n",examples=>[{test=>0,valid=>0,value=>""},{summary=>"Assuming the profile named \"default\" exists in local Firefox installation",test=>0,valid=>1,value=>"default"}],prefilters=>["Firefox::check_profile_name_exists"],summary=>"Firefox profile name, must exist in local Firefox installation"},'$var->{clsets_after_base}[0]'],"clsets_after_type.alt.merge.merged"=>['$var->{clsets_after_type}[0]','$var->{clsets_after_type}[1]','$var->{clsets_after_base}[0]'],resolve_path=>["str","firefox::profile_name","firefox::local_profile_name"],type=>"str",v=>2};$var->{clsets_after_type}[2]=$var->{clsets_after_base}[0];$var->{"clsets_after_type.alt.merge.merged"}[0]=$var->{clsets_after_type}[0];$var->{"clsets_after_type.alt.merge.merged"}[1]=$var->{clsets_after_type}[1];$var->{"clsets_after_type.alt.merge.merged"}[2]=$var->{clsets_after_base}[0];$var};
8  
9 1 1;
10 # ABSTRACT: Firefox profile name, must exist in local Firefox installation, default to first
11  
12 __END__
« Sah/SchemaR/firefox/local_profile_name.pm ↑ Summary Sah/SchemaR/firefox/profile_name.pm »