This is Perl module Test::Arrow. It's Object-Oriented testing library.
use Test::Arrow; my $arr = Test::Arrow->new; $arr->got(1)->ok; $arr->expect(uc 'foo')->to_be('FOO'); $arr->name('Test Name') ->expected('FOO') ->got(uc 'foo') ->is; $arr->expected(6) ->got(2 * 3) ->is_num; $arr->expected(qr/^ab/) ->got('abc') ->like; $arr->warnings(sub { warn 'Bar' })->catch(qr/^Ba/); $arr->throw(sub { die 'Baz' })->catch(qr/^Ba/);
Test::Arrow installation is straightforward. If your CPAN shell is set up, you should just be able to do
% cpan Test::Arrow
Download it, unpack it, then build it as per the usual:
% perl Makefile.PL % make && make test
Then install it:
% make install
Test::Arrow documentation is available as in POD. So you can do:
% perldoc Test::Arrow
Test::Arrow is hosted on github http://github.com/bayashi/Test-Arrow
Test::Arrow is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. (Note that, unlike the Artistic License 1.0, version 2.0 is GPL compatible by itself, hence there is no benefit to having an Artistic 2.0 / GPL disjunction.) See the file LICENSE for details.
Test::Arrow
Dai Okabayashi <bayashi@cpan.org>
To install Test::Arrow, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Arrow
CPAN shell
perl -MCPAN -e shell install Test::Arrow
For more information on module installation, please visit the detailed CPAN module installation guide.