bin/locale_simple_scraper

filter: Statementstmt 85.7% 18 / 21 Branchbran 50.0% 3 / 6 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 71.4% 25 / 35 CC 1 SCAR 0.0
CC
1
Cov
73%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Locale/Simple/Scraper/ParserShortcuts.pm ↑ Summary bin/locale-simple »
1 #!/usr/bin/env perl
2 # PODNAME: locale_simple_scraper
3 # ABSTRACT: Command line tool for finding tokens in code
4 5 our $VERSION = '0.200';
5  
6  
7 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 5 ▶use Locale::Simple::Scraper 'scrape';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 5 print STDERR "locale_simple_scraper is deprecated, use: locale-simple scrape\n";
13  
14 5 ▶eval { scrape(@ARGV); 1 } or do {
Branch: 1 branch
BranchTrueFalseTotal
eval { do { scrape(@ARGV); 1 } } or do { my $err = $@; if (ref $err and ref $err eq "Locale::Simple::Scraper::BadCall") { print STDERR $err->{"message"}, Locale::Simple::Scraper::usage(); exit 2; } ; $err .= "\n" unless $err =~ /\n\z/; print STDERR $err; exit 1 } 3 2 5
15 2 my $err = $@;
16 2 ▶ if ( ref $err and ref $err eq 'Locale::Simple::Scraper::BadCall' ) {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $err and ref $err eq "Locale::Simple::Scraper::BadCall") 2 0 2
Condition33%1/3
ref $err and ref $err eq "Locale::Simple::Scraper::BadCall"
!ll&&!rl&&r
002
MC/DC0%0/2
ref $err and ref $err eq "Locale::Simple::Scraper::BadCall"
ref $err ref $err eq "Locale::Simple::Scraper::BadCall"
Truth table33%1/3
A and B
A= ref $errB= ref $err eq "Locale::Simple::Scraper::BadCall"
ABresult
0X0
100
111
17 2 print STDERR $err->{message}, Locale::Simple::Scraper::usage();
18 2 exit 2;
19 }
20 0 ▶ $err .= "\n" unless $err =~ /\n\z/;
Branch: 1 branch
BranchTrueFalseTotal
unless $err =~ /\n\z/ 0 0 0
21 0 print STDERR $err;
22 0 exit 1;
23 };
24  
25 __END__
« lib/Locale/Simple/Scraper/ParserShortcuts.pm ↑ Summary bin/locale-simple »