NAME
URI::Fast::Test - Unit test comparisons for URI::Fast objects
SYNOPSIS
use URI::Fast qw(uri);
use URI::Fast::Test;
is_same_uri uri($got), uri($expected), 'got expected uri';
isnt_same_uri uri($got), uri($unwanted), 'did not get unwanted uri';
EXPORTS
is_same_uri
Builds a nested structure of uri components for comparison with Test2's deep comparison using is
.
isnt_same_uri
Builds a nested structure of uri components for comparison with Test2's deep comparison using isnt
.
SUBROUTINES
export_uri
Exports a URI::Fast object as a hash ref for use with Test2's comparison functions. The return value's structure is:
{
scheme => $uri->scheme,
usr => $uri->usr,
pwd => $uri->pwd,
host => $uri->host,
port => $uri->port,
path => [$uri->path],
query => $uri->query_hash,
frag => $uri->frag,
}
AUTHOR
Jeff Ober <sysread@fastmail.fm>
COPYRIGHT AND LICENSE
This software is copyright (c) 2018 by Jeff Ober. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 91:
=cut found outside a pod block. Skipping to next block.