Aion-Run
view release on metacpan or search on metacpan
t/aion/run/runner.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::Runner - запÑÑÐºÐ°ÐµÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ Ð¾Ð¿Ð¸ÑаннÑÑ Ð°Ð½Ð½Ð¾ÑаÑией `#@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 Aion::Format qw/trappout np/;
use Aion::Run::Runner;
use Aion::Run::RunRun;
local ($::_g0 = do {trappout { Aion::Run::Runner->run("run", "1+2") }}, $::_e0 = do {np(3, caller_info => 0) . "\n"}); ::ok defined($::_g0) == defined($::_e0) && $::_g0 eq $::_e0, 'trappout { Aion::Run::Runner->run("run", "1+2") } # -> np(3, caller_i...
#
# # DESCRIPTION
#
# `Aion::Run::Runner` ÑÑиÑÑÐ²Ð°ÐµÑ Ñайл **etc/annotation/run.ann** Ñо ÑпиÑком ÑкÑипÑов, а вÑполниÑÑ Ð»Ñбой ÑкÑÐ¸Ð¿Ñ Ð¸Ð· ÑпиÑка можно ÑеÑез его меÑод `run`.
#
# ÐÑÑÑ Ðº ÑÐ°Ð¹Ð»Ñ cо ÑкÑипÑами можно поменÑÑÑ Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ ÐºÐ¾Ð½Ñига `INI`.
#
# ÐÑполÑзÑеÑÑÑ Ð² команде `act`.
#
# # FEATURES
#
# ## runs
#
# Ð¥ÐµÑ Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð°Ð¼Ð¸. ÐодгÑÑжаеÑÑÑ Ð¿Ð¾ деÑолÑÑ Ð¸Ð· Ñайла `INI`.
#
# # SUBROUTINES
#
# ## run ($name, @args)
#
# ÐапÑÑÐºÐ°ÐµÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ Ñ Ð¸Ð¼ÐµÐ½ÐµÐ¼ `$name` и аÑгÑменÑами `@args` из ÑпиÑка **etc/annotation/run.ann**.
#
# # AUTHOR
#
# Yaroslav O. Kosmina <darviarush@mail.ru>
#
# # LICENSE
#
# â **GPLv3**
#
# # COPYRIGHT
#
# The Aion::Run::Runner module is copyright © 2023 Yaroslav O. Kosmina. Rusland. All rights reserved.
::done_testing;
};
::done_testing;
( run in 2.990 seconds using v1.01-cache-2.11-cpan-75ffa21a3d4 )