devel/p5-Test-MockTime 0.17p0 OpenBSD
replaces actual time with simulated time
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- Benoit Lecocq <[email protected]>
- Categories
- devel, perl5
Description
This module 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
The newest version among them is 0.17, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| OpenBSD | devel/p5-Test-MockTime | 0.17p0 newest | no data | - | Benoit Lecocq <[email protected]> | - |
| FreeBSD | devel/p5-Test-MockTime | 0.17 newest | none known | - | [email protected] | - |
| NetBSD | time/p5-Test-MockTime by name | 0.17nb9 newest | none known | - | [email protected] | 2026-07-16 |
| DragonFly | devel/p5-Test-MockTime | 0.17 newest | none known | - | [email protected] | - |
| MidnightBSD | devel/p5-Test-MockTime | 0.17 newest | no data | - | [email protected] | - |
| HardenedBSD | devel/p5-Test-MockTime | 0.17 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-Test-MockTime | 0.17 newest | no data | - | [email protected] | - |
Install
Binary package:
pkg_add p5-Test-MockTime
From the ports tree:
cd /usr/ports/devel/p5-Test-MockTime && make install
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.