Aion-Run
view release on metacpan or search on metacpan
t/aion/run/runs-run.t view on Meta::CPAN
use common::sense; use open qw/:std :utf8/; use Carp qw//; use Cwd qw//; use File::Basename qw//; use File::Find qw//; use File::Slurper qw//; use File::Spec qw//; use File::Path qw//; use Scalar::Util qw//; use Test::More 0.98; use String::Diff q...
# # NAME
#
# Aion::Run::RunsRun - ÑпиÑок ÑкÑипÑов Ñ Ð°Ð½Ð½Ð¾ÑаÑией `#@run`
#
# # SYNOPSIS
#
# Файл etc/annotation/run.ann:
#@> etc/annotation/run.ann
#>> Aion::Run::RunRun#run,3=run:run âExecutes Perl code in the context of the current projectâ
#>> Aion::Run::RunsRun#list,5=run:runs âList of scriptsâ
#@< EOF
#
subtest 'SYNOPSIS' => sub {
use common::sense;
use Aion::Format qw/trappout coloring/;
use Aion::Run::RunsRun;
my $len = 4;
my $len2 = 6;
my $list = coloring "#yellow%s#r\n", "run";
$list .= coloring " #green%-${len}s #{bold red}%-${len2}s #{bold black}%s#r\n", "run", "code", "âExecutes Perl code in the context of the current projectâ";
$list .= coloring " #green%-${len}s #{bold red}%-${len2}s #{bold black}%s#r\n", "runs", "[mask]", "âList of scriptsâ";
local ($::_g0 = do {trappout { Aion::Run::RunsRun->new->list }}, $::_e0 = "$list"); ::ok $::_g0 eq $::_e0, 'trappout { Aion::Run::RunsRun->new->list } # => $list' or ::diag ::_string_diff($::_g0, $::_e0); undef $::_g0; undef $::_e0;
#
# # DESCRIPTION
#
# ÐеÑаÑÐ°ÐµÑ Ð½Ð° ÑÑандаÑÑнÑй вÑвод ÑпиÑок ÑÑенаÑиев из Ñайла **etc/annotation/run.ann**.
#
# ÐÐ»Ñ ÑÑого загÑÑÐ¶Ð°ÐµÑ ÑайлÑ, ÑÑÐ¾Ð±Ñ Ð¿Ð¾Ð»ÑÑиÑÑ Ð¸Ð· ниÑ
опиÑание аÑгÑменÑов.
#
# ÐоменÑÑÑ Ñайл можно в конÑиге `Aion::Run::Runner#INI`.
#
# # FEATURES
#
# ## mask
#
# ÐаÑка Ð´Ð»Ñ ÑилÑÑÑа по ÑкÑипÑам.
#
::done_testing; }; subtest 'mask' => sub {
my $len = 4;
my $len2 = 6;
my $list = coloring "#yellow%s#r\n", "run";
$list .= coloring " #green%-${len}s #{bold red}%-${len2}s #{bold black}%s#r\n", "runs", "[mask]", "âList of scriptsâ";
local ($::_g0 = do {trappout { Aion::Run::RunsRun->new(mask => 'runs')->list }}, $::_e0 = "$list"); ::ok $::_g0 eq $::_e0, 'trappout { Aion::Run::RunsRun->new(mask => \'runs\')->list } # => $list' or ::diag ::_string_diff($::_g0, $::_e0); undef $::_g...
#
# # SUBROUTINES
#
# ## list ()
#
# ÐÑÐ²Ð¾Ð´Ð¸Ñ ÑпиÑок ÑÑенаÑиев на `STDOUT`.
#
# # AUTHOR
#
# Yaroslav O. Kosmina <darviarush@mail.ru>
( run in 1.439 second using v1.01-cache-2.11-cpan-63c85eba8c4 )