The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use Test::Base;
use URI;

plan tests => 2 * blocks;

run {
    my $block = shift;
    my $uri = URI->new($block->input);
    is $block->host, $uri->host;
    is $block->path, $uri->path;
};

__END__
===
--- input: git://github.com/miyagawa/remedie.git
--- host: github.com
--- path: /miyagawa/remedie.git