BSD Ports

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

SystemPortVersion
FreeBSDdevel/p5-Test-Lives1.003
DragonFlydevel/p5-Test-Lives1.003
HardenedBSDdevel/p5-Test-Lives1.003
GhostBSDdevel/p5-Test-Lives1.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.0031.0031.0031.0031.003
FreeBSD:14:quarterly1.0031.003n/a1.0031.003
FreeBSD:15:latest1.0031.003n/a1.0031.003
FreeBSD:15:quarterly1.0031.003n/an/an/a
FreeBSD:16:latest1.0031.003n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/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
FileSizeSHA256
Test-Lives-1.003.tar.gz11115d811b18522161116dd5d45dd1711d6f7178cf64d00b5316c0bcfe4a6f86a6d94
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.