blib/lib/Acme/Boolean.pm

filter: Statementstmt 100% 33 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 39 / 39 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package Acme::Boolean;
2 # ABSTRACT: There is more then one way to be true.
3 3 $Acme::Boolean::VERSION = '0.5';
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶use boolean ':all';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 ▶use base 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 3 ▶no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 my @true = map {
14 3 *{"$_"} = \&true;
15 138 $_;
16 } qw(yes verifiable trusty accurate actual appropriate authentic authoritative correct dependable direct exact factual fitting genuine honest indubitable kosher lawful legal legitimate natural normal perfect precise proper pure regular right rightful sincere straight trustworthy truthful typical undeniable undesigning undoubted unerring unfaked unfeigned unquestionable veracious veridical veritable wash);
17  
18 my @false = map {
19 3 *{$_} = \&false;
20 138 $_;
21 } qw(no untrue wrong incorrect errorneous fallacious untruthful nah apocryphal beguiling bogus casuistic concocted counterfactual deceitful deceiving delusive dishonest distorted erroneous ersatz fake fanciful faulty fictitious fishy fraudulent illusive imaginary improper inaccurate inexact invalid lying mendacious misleading misrepresentative mistaken phony sham sophistical specious spurious unfounded unreal unsound);
22  
23 my @ad = map {
24 6 ▶ *{$_} = sub($) { shift; };
Subroutine __ANON__: called CC=1 SCAR=0.0
25 30 $_;
26 } qw(so totally very definitely really certainly surely unquestionably undoubtedly absolutely);
27  
28 3 our @EXPORT = (qw(true false), @ad, @true, @false);
29 3 our @EXPORT_OK = qw(isTrue isFalse isBoolean);
30 3 our %EXPORT_TAGS = (
31 default => [@EXPORT],
32 all => [@EXPORT, @EXPORT_OK]
33 );
34  
35 3 1;
36  
37 __END__
↑ Summary