jonasbn > Business-DK-FI > Data::FormValidator::Constraints::Business::DK::FI

Download:
Business-DK-FI-0.06.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Data::FormValidator::Constraints::Business::DK::FI - constraint for Danish FI

VERSION ^

The documentation describes version 0.01 of Data::FormValidator::Constraints::Business::DK::FI

SYNOPSIS ^

  use Data::FormValidator;
  use Data::FormValidator::Constraints::Business::DK::FI qw(valid_fi);

    my $dfv_profile = {
        required => [qw(fi)],
        constraint_methods => {
            fi => valid_fi(),
        }
    };

    my $dfv_profile = {
        required => [qw(fi)],
        constraint_methods => {
            fi => valid_fi(),
        },
        untaint_all_constraints => 1,
    };

DESCRIPTION ^

This module exposes a set of subroutines which are compatible with Data::FormValidator. The module implements contraints as specified in Data::FormValidator::Constraints.

SUBROUTINES AND METHODS ^

valid_fi

Checks whether a FI number is valid (see: SYNOPSIS) and Business::DK::FI.

match_valid_fi

Untaints a given FI number (see: SYNOPSIS and BUGS AND LIMITATIONS).

EXPORTS ^

Data::FormValidator::Constraints::Business::DK::FI exports on request:

DIAGNOSTICS ^

CONFIGURATION AND ENVIRONMENT ^

This module requires no special configuration or environment to run.

It is intended to integrate with Data::FormValidator profiles in general.

DEPENDENCIES ^

INCOMPATIBILITIES ^

The module has no known incompatibilities.

BUGS AND LIMITATIONS ^

The tests seem to reflect that untainting takes place, but the "match_valid_fi" is not called at all, so how this untaiting is expected integrated into Data::FormValidator is still not settled (SEE: "TODO").

TEST AND QUALITY ^

The module is generally well tested, apart for the untainting facility implemented in: "match_valid_fi", please see "BUGS AND LIMITATIONS" and "TODO".

TEST COVERAGE

    ---------------------------- ------ ------ ------ ------ ------ ------ ------
    File                           stmt   bran   cond    sub    pod   time  total
    ---------------------------- ------ ------ ------ ------ ------ ------ ------
    blib/lib/Business/DK/FI.pm    100.0  100.0    n/a  100.0  100.0   35.1  100.0
    ...b/Class/Business/DK/FI.pm  100.0  100.0   66.7  100.0  100.0   64.9   98.4
    Total                         100.0  100.0   66.7  100.0  100.0  100.0   99.3
    ---------------------------- ------ ------ ------ ------ ------ ------ ------

QUALITY AND CODING STANDARD ^

This is a plugin for Data::FormValidator it follows the de facto standard of code layout and naming used in other Data::FormValidator plugins and meets requirements defined by Data::FormValidator.

The code passes Perl::Critic tests at severity 1 (brutal) with a set of policies disabled. please see t/perlcriticrc and the list below:

Perl::Critic Tests

Are enabled using the environment variable:

    TEST_CRITIC

Please see the documentation in: t/critic.t.

POD Tests

Are enabled using the environment variable:

    TEST_POD

Author Tests

Are enabled using the environment variable:

    TEST_AUTHOR

BUG REPORTING ^

Please report issues via CPAN RT:

or by sending mail to

TODO ^

Please see the distribution TODO file also and the distribution road map at: http://logiclab.jira.com/browse/BDKFI#selectedTab=com.atlassian.jira.plugin.system.project%3Aroadmap-panel

SEE ALSO ^

AUTHOR ^

Jonas B. Nielsen, (jonasbn) - <jonasbn@cpan.org>

COPYRIGHT ^

Business-DK-FI and related is (C) by Jonas B. Nielsen, (jonasbn) 2009-2011

LICENSE ^

Business-DK-FI and related is released under the artistic license

The distribution is licensed under the Artistic License, as specified by the Artistic file in the standard perl distribution (http://dev.perl.org/licenses/artistic.html).

syntax highlighting: