內容

名稱

Test2::Event::Skip - 跳過事件類型

說明

跳過事件會像 Test2::Event::Ok 事件一樣增加測試計數,但它們絕不會失敗。

語法

use Test2::API qw/context/;
use Test2::Event::Skip;

my $ctx = context();
my $event = $ctx->skip($name, $reason);

my $ctx   = context();
my $event = $ctx->send_event(
    'Skip',
    name   => $name,
    reason => $reason,
);

存取器

$reason = $e->reason

傳入事件的原始 true/false 值(但簡化為 1 或 0)。

原始碼

Test2 的原始碼存放庫可以在 http://github.com/Test-More/test-more/ 中找到。

維護人員

Chad Granum <exodist@cpan.org>

作者

Chad Granum <exodist@cpan.org>

版權

版權所有 2020 Chad Granum <exodist@cpan.org>。

此程式為自由軟體;您可以在與 Perl 相同的條款下重新散布或修改它。

請參閱 http://www.perl.com/perl/misc/Artistic.html