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
| System | Port | Version |
|---|---|---|
| DragonFly | devel/p5-Test-MockTime | 0.17 |
| FreeBSD | devel/p5-Test-MockTime | 0.17 |
| OpenBSD | devel/p5-Test-MockTime | 0.17p0 |
| NetBSD | time/p5-Test-MockTime | 0.17nb9 |
| MidnightBSD | devel/p5-Test-MockTime | 0.17 |
| HardenedBSD | devel/p5-Test-MockTime | 0.17 |
| GhostBSD | devel/p5-Test-MockTime | 0.17 |
Install
Binary package:
pkg install p5-Test-MockTime
From DPorts:
cd /usr/dports/devel/p5-Test-MockTime && make install clean