File Coverage

blib/lib/Schema/Kwalify.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 2 0.0
total 17 19 89.4


line stmt bran cond sub pod time code
1             # -*- mode: cperl; coding: latin-2 -*-
2              
3             #
4             # $Id: Kwalify.pm,v 1.4 2007/03/04 10:50:06 eserte Exp $
5             # Author: Slaven Rezic
6             #
7             # Copyright (C) 2006,2007 Slaven Rezic. All rights reserved.
8             # This package is free software; you can redistribute it and/or
9             # modify it under the same terms as Perl itself.
10             #
11             # Mail: slaven@rezic.de
12             # WWW: http://www.rezic.de/eserte/
13             #
14              
15             package Schema::Kwalify;
16              
17 1     1   2433 use strict;
  1         3  
  1         42  
18 1     1   6 use vars qw($VERSION);
  1         2  
  1         176  
19             $VERSION = sprintf("%d.%02d", q$Revision: 1.4 $ =~ /(\d+)\.(\d+)/);
20              
21 1     1   12 use Kwalify qw();
  1         2  
  1         96  
22              
23             sub new {
24 1     1 0 513 bless {}, shift;
25             }
26              
27             sub validate {
28 2     2 0 568 my($self, $schema, $data) = @_;
29 2         5 Kwalify::validate($schema, $data);
30             }
31              
32             1;
33              
34             __END__