Data::Semantic::URI::TestData::http - Test data class for the http URI semantic data class


Data-Semantic-URI documentation Contained in the Data-Semantic-URI distribution.

Index


Code Index:

NAME

Top

Data::Semantic::URI::TestData::http - Test data class for the http URI semantic data class

VERSION

Top

version 1.100850

DESCRIPTION

Top

Defines test data for Data::Semantic::URI::http_TEST, but it is also used in the corresponding value and domain classes, i.e., Class::Value::URI::http_TEST and Data::Domain::URI::http_TEST.

INSTALLATION

Top

See perlmodinstall for information and options on installing Perl modules.

BUGS AND LIMITATIONS

Top

No bugs have been reported.

Please report any bugs or feature requests through the web interface at http://rt.cpan.org/Public/Dist/Display.html?Name=Data-Semantic-URI.

AVAILABILITY

Top

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see http://search.cpan.org/dist/Data-Semantic-URI/.

The development version lives at http://github.com/hanekomu/Data-Semantic-URI/. Instead of sending patches, please fork this project using the standard git and github infrastructure.

AUTHOR

Top

  Marcel Gruenauer <marcel@cpan.org>

COPYRIGHT AND LICENSE

Top


Data-Semantic-URI documentation Contained in the Data-Semantic-URI distribution.

use 5.008;
use strict;
use warnings;

package Data::Semantic::URI::TestData::http;
our $VERSION = '1.100850';
# ABSTRACT: Test data class for the http URI semantic data class
no warnings 'qw';    # Possible attempt to put comments in qw() list
use constant TESTDATA => (
    {   args  => {},
        valid => [
            qw(
              http://localhost/
              http://use.perl.org/~hanekomu/journal?entry=12345
              )
        ],
        invalid => [
            qw(
              news://localhost/
              http://?123
              https://localhost/
              https://use.perl.org/~hanekomu/journal.txt#foobar
              http://use.perl.org/~hanekomu/journal.txt#foobar
              http://use.perl.org%2F~hanekomu/journal?entry=12345
              )
        ],
    },
    {   args  => { scheme => 'https?' },
        valid => [
            qw(
              http://localhost/
              http://use.perl.org/~hanekomu/journal?entry=12345
              https://localhost/
              https://use.perl.org/~hanekomu/journal?entry=12345
              )
        ],
        invalid => [
            qw(
              news://localhost/
              http://?123
              http://use.perl.org/~hanekomu/journal.txt#foobar
              https://use.perl.org/~hanekomu/journal.txt#foobar
              http://use.perl.org%2F~hanekomu/journal?entry=12345
              )
        ],
    },
    {   args  => { scheme => 'https' },
        valid => [
            qw(
              https://localhost/
              https://use.perl.org/~hanekomu/journal?entry=12345
              )
        ],
        invalid => [
            qw(
              http://localhost/
              http://use.perl.org/~hanekomu/journal?entry=12345
              http://use.perl.org/~hanekomu/journal.txt#foobar
              https://use.perl.org/~hanekomu/journal.txt#foobar
              http://use.perl.org%2F~hanekomu/journal?entry=12345
              http://?123
              news://localhost/
              )
        ],
    },
);
1;


__END__