time/p5-Test-MockTime 0.17nb9 NetBSD
Replaces actual time with simulated time
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
618415630a- License
- gnu-gpl-v2 OR artistic
- Categories
- time, perl5
- Package size
- 7.1 KiB, 13.2 KiB installed
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
| System | Port | Version |
|---|---|---|
| NetBSD | time/p5-Test-MockTime | 0.17nb9 |
| FreeBSD | devel/p5-Test-MockTime | 0.17 |
| OpenBSD | devel/p5-Test-MockTime | 0.17p0 |
| DragonFly | devel/p5-Test-MockTime | 0.17 |
| MidnightBSD | devel/p5-Test-MockTime | 0.17 |
| HardenedBSD | devel/p5-Test-MockTime | 0.17 |
| GhostBSD | devel/p5-Test-MockTime | 0.17 |
Install
Binary package:
pkgin install p5-Test-MockTime
From pkgsrc:
cd /usr/pkgsrc/time/p5-Test-MockTime && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.17nb9 |
| NetBSD 10.1 aarch64 | 0.17nb8 |
| SmartOS / illumos x86_64 | 0.17nb9 |
| macOS 15 arm64 | 0.17nb9 |