File Coverage

blib/lib/Acme/Kiyoshi/Array.pm
Criterion Covered Total %
statement 10 15 66.6
branch 0 2 0.0
condition 0 3 0.0
subroutine 4 5 80.0
pod n/a
total 14 25 56.0


line stmt bran cond sub pod time code
1             package Acme::Kiyoshi::Array;
2              
3 1     1   899 use utf8;
  1         11  
  1         10  
4 1     1   40 use strict;
  1         3  
  1         34  
5 1     1   8 use warnings;
  1         2  
  1         202  
6              
7             our $VERSION = "0.02";
8              
9             BEGIN {
10             *CORE::GLOBAL::push = sub(\@@) {
11 0     0     my ($array, $value) = @_;
12 0           my $res = CORE::push(@$array, $value);
13              
14 0 0 0       if (scalar(@$array) >= 5 && join('', @$array[-5..-1]) =~ /ズンズンズンズンドコ/) {
15 0           $res = CORE::push(@$array, "キ・ヨ・シ!");
16             }
17              
18 0           return $res;
19 1     1   21 };
20             }
21              
22             1;
23             __END__