NAME
URI::Fast::Test
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,
}