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

NAME

Test::BrewBuild::Regex - Various regexes for the Test::BrewBuild platform

SYNOPSIS

use Test::BrewBuild::Regex;

my $results = ...;

my $re = re_brewbuild('extract_perl_version');

if ($results =~ /$re/){
    ...
}

# or, use the call inline with the deref trick

if ($results =~ /${ re_brewbuild('extract_perl_version') }/){
    ...
}

DESCRIPTION

Single location for all regexes used throughout Test::BrewBuild.

FUNCTIONS

All functions are exported by default.

re_brewbuild($re_name)

Provides regexes for the Test::BrewBuild library.

Available regexes are:

check_failed
check_result
extract_dist_name
extract_dist_version
extract_errors
extract_error_perl_ver
extract_result
extract_perl_version

re_brewcommands($re_name)

Provides regexes for the Test::BrewBuild::BrewCommands library.

Available regexes are:

available_berrybrew
available_perlbrew
installed_berrybrew
installed_perlbrew
using_berrybrew

re_dispatch($re_name)

Provides regexes for the Test::BrewBuild::Dispatch library.

Available regexes are:

extract_short_results

re_git($re_name)

Provides regexes for the Test::BrewBuild::Git library.

Available regexes are:

extract_repo_name
extract_commit_csum

AUTHOR

Steve Bertrand, <steveb at cpan.org>

LICENSE AND COPYRIGHT

Copyright 2017 Steve Bertrand.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.