| 1 | 3 | ▶ | use 5.008; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package Data::Semantic::URI::TestData::http; | ||
| 6 | 3 | our $VERSION = '1.100850'; | |
| 7 | # ABSTRACT: Test data class for the http URI semantic data class | ||
| 8 | 3 | ▶ | no warnings 'qw'; # Possible attempt to put comments in qw() list |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 3 | ▶ | use constant TESTDATA => ( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | { args => {}, | ||
| 11 | valid => [ | ||
| 12 | qw( | ||
| 13 | http://localhost/ | ||
| 14 | http://use.perl.org/~hanekomu/journal?entry=12345 | ||
| 15 | ) | ||
| 16 | ], | ||
| 17 | invalid => [ | ||
| 18 | qw( | ||
| 19 | news://localhost/ | ||
| 20 | http://?123 | ||
| 21 | https://localhost/ | ||
| 22 | https://use.perl.org/~hanekomu/journal.txt#foobar | ||
| 23 | http://use.perl.org/~hanekomu/journal.txt#foobar | ||
| 24 | http://use.perl.org%2F~hanekomu/journal?entry=12345 | ||
| 25 | ) | ||
| 26 | ], | ||
| 27 | }, | ||
| 28 | { args => { scheme => 'https?' }, | ||
| 29 | valid => [ | ||
| 30 | qw( | ||
| 31 | http://localhost/ | ||
| 32 | http://use.perl.org/~hanekomu/journal?entry=12345 | ||
| 33 | https://localhost/ | ||
| 34 | https://use.perl.org/~hanekomu/journal?entry=12345 | ||
| 35 | ) | ||
| 36 | ], | ||
| 37 | invalid => [ | ||
| 38 | qw( | ||
| 39 | news://localhost/ | ||
| 40 | http://?123 | ||
| 41 | http://use.perl.org/~hanekomu/journal.txt#foobar | ||
| 42 | https://use.perl.org/~hanekomu/journal.txt#foobar | ||
| 43 | http://use.perl.org%2F~hanekomu/journal?entry=12345 | ||
| 44 | ) | ||
| 45 | ], | ||
| 46 | }, | ||
| 47 | { args => { scheme => 'https' }, | ||
| 48 | valid => [ | ||
| 49 | qw( | ||
| 50 | https://localhost/ | ||
| 51 | https://use.perl.org/~hanekomu/journal?entry=12345 | ||
| 52 | ) | ||
| 53 | ], | ||
| 54 | invalid => [ | ||
| 55 | qw( | ||
| 56 | http://localhost/ | ||
| 57 | http://use.perl.org/~hanekomu/journal?entry=12345 | ||
| 58 | http://use.perl.org/~hanekomu/journal.txt#foobar | ||
| 59 | https://use.perl.org/~hanekomu/journal.txt#foobar | ||
| 60 | http://use.perl.org%2F~hanekomu/journal?entry=12345 | ||
| 61 | http://?123 | ||
| 62 | news://localhost/ | ||
| 63 | ) | ||
| 64 | ], | ||
| 65 | }, | ||
| 66 | 3 | ); | |
| 67 | 3 | 1; | |
| 68 | |||
| 69 | |||
| 70 | __END__ | ||