BSD Ports

devel/p5-Test-MockTime 0.17 DragonFly

Replaces actual time with simulated time

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
8.0 KiB, 15.9 KiB installed

Description

Test::MockTime was created to enable test suites to test code at specific points in time. Specifically it overrides localtime, gmtime and time at compile time and then relies on the user supplying a mock time via set_relative_time, set_absolute_time or set_fixed_time to alter future calls to gmtime, time or localtime.

In the other systems

SystemPortVersion
DragonFlydevel/p5-Test-MockTime0.17
FreeBSDdevel/p5-Test-MockTime0.17
OpenBSDdevel/p5-Test-MockTime0.17p0
NetBSDtime/p5-Test-MockTime0.17nb9
MidnightBSDdevel/p5-Test-MockTime0.17
HardenedBSDdevel/p5-Test-MockTime0.17
GhostBSDdevel/p5-Test-MockTime0.17

Install

Binary package:

pkg install p5-Test-MockTime

From DPorts:

cd /usr/dports/devel/p5-Test-MockTime && make install clean

Dependencies

Run dependencies 1