blib/lib/Data/Validate/WithYAML/Plugin/IBAN.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package Data::Validate::WithYAML::Plugin::IBAN;
2  
3 # ABSTRACT: check whether a given value is a valid IBAN
4  
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Algorithm::CheckDigits;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 our $VERSION = 0.04;
12  
13 14 ▶sub check {
Subroutine check: called CC=1 SCAR=0.0
Pod documented
14 14 my ($class, $value, $conf) = @_;
15  
16 14 return CheckDigits('iban')->is_valid( $value );
17 }
18  
19 1 1;
20  
21 __END__
↑ Summary