Data-Checker

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


        If $err is non-empty, an error has occurred.

        If the $negate_fail empty is empty, the 'negate' option will be
        ignored. This is typically used to test an element to see if it is
        the right type of data for this check. If it isn't, other types of
        checks are typically not able to run.

        If $label is empty, the test is always performed.

KNOWN BUGS AND LIMITATIONS
    None known.

SEE ALSO
    Data::Checker::DNS
        Predefined DNS checks.

    Data::Checker::Ping
        Predefined checks to see if a host reponds to pings.

    Data::Checker::IP

lib/Data/Checker.pod  view on Meta::CPAN


If the C<$negate_fail> empty is empty, the 'negate' option will be
ignored.  This is typically used to test an element to see if it is
the right type of data for this check.  If it isn't, other types of
checks are typically not able to run.

If C<$label> is empty, the test is always performed.

=back

=head1 KNOWN BUGS AND LIMITATIONS

None known.

=head1 SEE ALSO

=over 4

=item L<Data::Checker::DNS>

Predefined DNS checks.

lib/Data/Checker/DNS.pod  view on Meta::CPAN

   $opts = { 'dns' => undef,
             'expected_ip' => undef };

Yields:

   $pass = { 'cpan.org'       => { 'ip'  => '207.171.7.91' } }
   $fail = { 'blogs.perl.org' => [ 'DNS IP value does not match expected value' ] }

=back

=head1 KNOWN BUGS AND LIMITATIONS

None known.

=head1 SEE ALSO

L<Data::Checker>, L<Net::DNS>

=head1 LICENSE

This script is free software; you can redistribute it and/or modify it

lib/Data/Checker/Date.pod  view on Meta::CPAN

   $data = [ 'now', '2016-01-01 12:00:00', 'some-string' ];
   $opts = { }

This yields:

   $pass = [ 'now', '2016-01-01 12:00:00' ];
   $fail = { 'some-string' => 'Not a valid date' }

=back

=head1 KNOWN BUGS AND LIMITATIONS

None known.

=head1 SEE ALSO

L<Dat::Checker>, L<Date::Manip>

=head1 LICENSE

This script is free software; you can redistribute it and/or modify it

lib/Data/Checker/IP.pod  view on Meta::CPAN

   $data = [ '1.2.3.4', '1:2:3:4:5:6:7:8' ];
   $opts = { 'ipv4' => undef }

=item To check that all of the IPs are contained in a specific network

   $data = [ '1.2.3.4', '10.20.30.40' ];
   $opts = { 'in_network' { 'network' => '1.2.3.0/24' } };

=back

=head1 KNOWN BUGS AND LIMITATIONS

None known.

=head1 SEE ALSO

L<Data::Checker>, L<NetAddr::IP>

=head1 LICENSE

This script is free software; you can redistribute it and/or modify it

lib/Data/Checker/Ping.pod  view on Meta::CPAN

   $data = [ 'cpan.org', 'aaa.bbb.ccc' ];
   $opts = { 'external' => undef };

Produces:

   $pass = [ 'cpan.org' ]
   $fail = {'aaa.bbb.ccc' => ['Host does not respond to external pings']};

=back

=head1 KNOWN BUGS AND LIMITATIONS

None known.

=head1 SEE ALSO

L<Data::Checker>, L<Net::Ping>

=head1 LICENSE

This script is free software; you can redistribute it and/or modify it



( run in 0.277 second using v1.01-cache-2.11-cpan-4d50c553e7e )