NAME
URI::Fast::Test - Unit test comparisons for URI::Fast objects
VERSION
version 0.35_2
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';
NAME
URI::Fast::Test
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.