File Coverage

lib/Acme/MobileTradeFun/Utils.pm
Criterion Covered Total %
statement 6 13 46.1
branch 0 2 0.0
condition n/a
subroutine 2 4 50.0
pod 1 2 50.0
total 9 21 42.8


line stmt bran cond sub pod time code
1             package Acme::MobileTradeFun::Utils;
2              
3 1     1   3 use strict;
  1         3  
  1         25  
4 1     1   4 use warnings;
  1         2  
  1         92  
5              
6             sub new {
7 0     0 0   my ( $class, $args ) = @_;
8 0           return bless {}, $class;
9             }
10              
11             =head2 is_new_card
12              
13             Determines if a card is new or not
14              
15             =cut
16              
17             sub is_new_card {
18 0     0 1   my ( $self, $card, $all_cards ) = @_;
19            
20 0           for my $pile ( @{ $all_cards } ) {
  0            
21 0 0         return 0 if ( $card eq $pile );
22             }
23 0           return 1;
24             }
25              
26             1;