__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
package Test2::Tools;
use strict;
use warnings;
our $VERSION = '0.000162';
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Test2::Tools - Documentation for Tools.
=head1 DESCRIPTION
Tools are packages that export test functions, typically all related to a
specific aspect of testing. If you have a couple different categories of
exports then you may want to break them into separate modules.
Tools should export testing functions. Loading tools B<should not> have side
effects, or alter the behavior of other tools. If you want to alter behaviors
or create side effects then you probably want to write a L<Test2::Plugin>.
=head1 FAQ
=over 4
=item Why is it called Test2::Tools, and not Test2::Tool?
This question arises since Tools is the only namespace in the plural. This is
because each Plugin should be a distinct unit of functionality, but a Tools
dist can (and usually should) export several tools. A bundle is also typically
described as a single unit. Nobody would like Test2::Bundles::Foo.
=item Should my tools subclass Test2::Tools?
No. Currently this class is empty. Eventually we may want to add behavior, in
which case we do not want anyone to already be subclassing it.
=back
=head1 HOW DO I WRITE A 'TOOLS' MODULE?
It is very easy to write tools:
package Test2::Tools::Mine
use strict;
use warnings;
# All tools should use the context() function.
use Test2::API qw/context/;
our @EXPORTS = qw/ok plan/;
use base 'Exporter';
sub ok($;$) {
my ($bool, $name) = @_;
# All tool functions should start by grabbing a context
my $ctx = context();
# The context is the primary interface for generating events
$ctx->ok($bool, $name);
# When you are done you release the context
$ctx->release;
return $bool ? 1 : 0;
}
sub plan {
my ($max) = @_;
my $ctx = context();
$ctx->plan($max);
$ctx->release;
}
1;
See L<Test2::API::Context> for documentation on what the C<$ctx> object can do.
=head1 SOURCE
The source code repository for Test2-Suite can be found at
F<https://github.com/Test-More/Test2-Suite/>.
=head1 MAINTAINERS
=over 4
=item Chad Granum E<lt>[email protected]<gt>
=back
=head1 AUTHORS
=over 4
=item Chad Granum E<lt>[email protected]<gt>
=back
=head1 COPYRIGHT
Copyright 2018 Chad Granum E<lt>[email protected]<gt>.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
See F<http://dev.perl.org/licenses/>
=cut
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| API | Folder | 0755 |
|
|
| AsyncSubtest | Folder | 0755 |
|
|
| Bundle | Folder | 0755 |
|
|
| Compare | Folder | 0755 |
|
|
| Event | Folder | 0755 |
|
|
| EventFacet | Folder | 0755 |
|
|
| Formatter | Folder | 0755 |
|
|
| Hub | Folder | 0755 |
|
|
| IPC | Folder | 0755 |
|
|
| Manual | Folder | 0755 |
|
|
| Plugin | Folder | 0755 |
|
|
| Require | Folder | 0755 |
|
|
| Tools | Folder | 0755 |
|
|
| Util | Folder | 0755 |
|
|
| Workflow | Folder | 0755 |
|
|
| API.pm | File | 48.43 KB | 0644 |
|
| AsyncSubtest.pm | File | 19.08 KB | 0644 |
|
| Bundle.pm | File | 1.52 KB | 0644 |
|
| Compare.pm | File | 11.53 KB | 0644 |
|
| Event.pm | File | 22.11 KB | 0644 |
|
| EventFacet.pm | File | 1.46 KB | 0644 |
|
| Formatter.pm | File | 3.86 KB | 0644 |
|
| Hub.pm | File | 22.31 KB | 0644 |
|
| IPC.pm | File | 3.1 KB | 0644 |
|
| Manual.pm | File | 1.49 KB | 0644 |
|
| Mock.pm | File | 22.27 KB | 0644 |
|
| Plugin.pm | File | 1.83 KB | 0644 |
|
| Require.pm | File | 2.65 KB | 0644 |
|
| Suite.pm | File | 9.26 KB | 0644 |
|
| Todo.pm | File | 3.77 KB | 0644 |
|
| Tools.pm | File | 2.51 KB | 0644 |
|
| Transition.pod | File | 13.17 KB | 0644 |
|
| Util.pm | File | 10.33 KB | 0644 |
|
| V0.pm | File | 11.56 KB | 0644 |
|
| Workflow.pm | File | 7.13 KB | 0644 |
|