URI::Fast::Test - Unit test comparisons for URI::Fast objects
version 0.35_2
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';
URI::Fast::Test
Builds a nested structure of uri components for comparison with Test2's deep comparison using is.
is
Builds a nested structure of uri components for comparison with Test2's deep comparison using isnt.
isnt
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, }
Jeff Ober <sysread@fastmail.fm>
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.
To install URI::Fast, copy and paste the appropriate command in to your terminal.
cpanm
cpanm URI::Fast
CPAN shell
perl -MCPAN -e shell install URI::Fast
For more information on module installation, please visit the detailed CPAN module installation guide.