« Data/Sah/Filter/perl/Firefox/check_profile_name_exists.pm
↑ Summary
Perinci/Sub/XCompletion/firefox_profile_name.pm »
| 1 | package Data::Sah::Value::perl::Firefox::first_local_profile_name; | ||||||||||||
| 2 | |||||||||||||
| 3 | 1 | ▶ | use 5.010001; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 1 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | |||||||||||||
| 7 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |||||||||||
| 8 | 1 | our $DATE = '2023-06-14'; # DATE | |||||||||||
| 9 | 1 | our $DIST = 'Sah-Schemas-Firefox'; # DIST | |||||||||||
| 10 | 1 | our $VERSION = '0.008'; # VERSION | |||||||||||
| 11 | |||||||||||||
| 12 | 0 | ▶ | sub meta { | ||||||||||
|
Subroutine
meta: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 13 | +{ | ||||||||||||
| 14 | 0 | v => 1, | |||||||||||
| 15 | summary => 'First local Firefox profile name', | ||||||||||||
| 16 | prio => 50, | ||||||||||||
| 17 | args => { | ||||||||||||
| 18 | }, | ||||||||||||
| 19 | }; | ||||||||||||
| 20 | } | ||||||||||||
| 21 | |||||||||||||
| 22 | 0 | ▶ | sub value { | ||||||||||
|
Subroutine
value: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||
| 23 | 0 | my %cargs = @_; | |||||||||||
| 24 | |||||||||||||
| 25 | 0 | my $res = {}; | |||||||||||
| 26 | |||||||||||||
| 27 | 0 | ▶ | $res->{modules}{"Firefox::Util::Profile"} //= 0.005; | ||||||||||
|
Condition0%0/2
$res->{"modules"}{"Firefox::Util::Profile"} //= "0.005"
MC/DC0%0/1
$res->{"modules"}{"Firefox::Util::Profile"} //= "0.005"
$res->{"modules"}{"Firefox::Util::Profile"}
Truth table0%0/2
A
A= $res->{"modules"}{"Firefox::Util::Profile"}
| |||||||||||||
| 28 | 0 | $res->{expr_value} = join( | |||||||||||
| 29 | '', | ||||||||||||
| 30 | 'do { ', ( | ||||||||||||
| 31 | 'my $res = Firefox::Util::Profile::list_firefox_profiles(); ', | ||||||||||||
| 32 | 'warn "Cannot list Firefox profiles: $res->[0] - $res->[1]" unless $res->[0] == 200; ', | ||||||||||||
| 33 | '$res->[2][0] ', | ||||||||||||
| 34 | ), | ||||||||||||
| 35 | '}', | ||||||||||||
| 36 | ); | ||||||||||||
| 37 | |||||||||||||
| 38 | 0 | $res; | |||||||||||
| 39 | } | ||||||||||||
| 40 | |||||||||||||
| 41 | 1 | 1; | |||||||||||
| 42 | # ABSTRACT: | ||||||||||||
| 43 | |||||||||||||
| 44 | __END__ | ||||||||||||