File Coverage

blib/lib/Schema/Kwalify.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 0 2 0.0
total 21 23 91.3


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   748 use strict;
  1         2  
  1         28  
18 1     1   5 use warnings;
  1         2  
  1         32  
19              
20 1     1   6 use vars qw($VERSION);
  1         2  
  1         71  
21             $VERSION = sprintf("%d.%02d", q$Revision: 1.4 $ =~ /(\d+)\.(\d+)/);
22              
23 1     1   16 use Kwalify qw();
  1         2  
  1         86  
24              
25             sub new {
26 1     1 0 559 bless {}, shift;
27             }
28              
29             sub validate {
30 2     2 0 399 my($self, $schema, $data) = @_;
31 2         8 Kwalify::validate($schema, $data);
32             }
33              
34             1;
35              
36             __END__