File Coverage

blib/lib/Acme/Boolean.pm
Criterion Covered Total %
statement 17 17 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 0 1 0.0
total 24 25 96.0


line stmt bran cond sub pod time code
1             package Acme::Boolean;
2             # ABSTRACT: There is more then one way to be true.
3             $Acme::Boolean::VERSION = '0.6';
4 3     3   1349 use strict;
  3         18  
  3         94  
5 3     3   15 use warnings;
  3         5  
  3         122  
6              
7 3     3   1410 use boolean ':all';
  3         10858  
  3         13  
8              
9 3     3   492 use base 'Exporter';
  3         7  
  3         265  
10              
11 3     3   18 no strict 'refs';
  3         6  
  3         1086  
12              
13             my @true = map {
14             *{"$_"} = \&true;
15             $_;
16             } map { ($_, uc($_)) } 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             *{$_} = \&false;
20             $_;
21             } map { ($_, uc($_)) } 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 14     14   2163 *{$_} = sub($) { shift; };
25             $_;
26             } map { ($_, uc($_)) } qw(so totally very definitely really certainly surely unquestionably undoubtedly absolutely exactly);
27              
28 1     1 0 4 sub NOT($) { not shift }
29             push @ad, 'NOT';
30              
31             our @EXPORT = (qw(true false), @ad, @true, @false);
32             our @EXPORT_OK = qw(isTrue isFalse isBoolean);
33             our %EXPORT_TAGS = (
34             default => [@EXPORT],
35             all => [@EXPORT, @EXPORT_OK]
36             );
37              
38             1;
39              
40             __END__