BSD Ports

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.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
OpenBSDdevel/p5-Test-MockTime0.17p0 newestno data-Benoit Lecocq <[email protected]>-
FreeBSDdevel/p5-Test-MockTime0.17 newestnone known-[email protected]-
NetBSDtime/p5-Test-MockTime by name0.17nb9 newestnone known-[email protected]2026-07-16
DragonFlydevel/p5-Test-MockTime0.17 newestnone known-[email protected]-
MidnightBSDdevel/p5-Test-MockTime0.17 newestno data-[email protected]-
HardenedBSDdevel/p5-Test-MockTime0.17 newestno data-[email protected]-
GhostBSDdevel/p5-Test-MockTime0.17 newestno data-[email protected]-

Compare across BSDs

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.

Dependencies