File Coverage

blib/lib/Acme/Boolean.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 22 22 100.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.5';
4 3     3   1181 use strict;
  3         17  
  3         85  
5 3     3   14 use warnings;
  3         6  
  3         104  
6              
7 3     3   1234 use boolean ':all';
  3         9787  
  3         12  
8              
9 3     3   386 use base 'Exporter';
  3         6  
  3         293  
10              
11 3     3   20 no strict 'refs';
  3         6  
  3         848  
12              
13             my @true = map {
14             *{"$_"} = \&true;
15             $_;
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             *{$_} = \&false;
20             $_;
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     6   1713 *{$_} = sub($) { shift; };
25             $_;
26             } qw(so totally very definitely really certainly surely unquestionably undoubtedly absolutely);
27              
28             our @EXPORT = (qw(true false), @ad, @true, @false);
29             our @EXPORT_OK = qw(isTrue isFalse isBoolean);
30             our %EXPORT_TAGS = (
31             default => [@EXPORT],
32             all => [@EXPORT, @EXPORT_OK]
33             );
34              
35             1;
36              
37             __END__