devel/p5-Test-Lives 1.003 FreeBSD
Decorate tests with a no-exceptions assertion
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 10.6 KiB, 40.1 KiB installed
Description
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.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-Test-Lives | 1.003 |
| DragonFly | devel/p5-Test-Lives | 1.003 |
| HardenedBSD | devel/p5-Test-Lives | 1.003 |
| GhostBSD | devel/p5-Test-Lives | 1.003 |
Install
Binary package:
pkg install p5-Test-Lives
From the ports tree:
cd /usr/ports/devel/p5-Test-Lives/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Test-Lives>0:devel/p5-Test-Lives
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.003 | 1.003 | 1.003 | 1.003 | 1.003 |
| FreeBSD:14:quarterly | 1.003 | 1.003 | n/a | 1.003 | 1.003 |
| FreeBSD:15:latest | 1.003 | 1.003 | n/a | 1.003 | 1.003 |
| FreeBSD:15:quarterly | 1.003 | 1.003 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.003 | 1.003 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 1
Run dependencies 1
No port depends on this one.
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%SITE_PERL%%/Test/Lives.pm
- %%PERL5_MAN3%%/Test::Lives.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Test-Lives-1.003.tar.gz | 11115 | d811b18522161116dd5d45dd1711d6f7178cf64d00b5316c0bcfe4a6f86a6d94 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.