OpenBSD Handbook

OpenBSD 7.9 release · amd64 · Generated 2026-09-09

p5-Test-MockTime-0.17p0

replaces actual time with simulated time

Back to search · Project homepage

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.

Package information

Ports path
devel/p5-Test-MockTime
Package architecture
*
Maintainer
Benoit Lecocq <benoit@openbsd.org>
Categories
devel, perl5
Available flavors
None listed

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

Test

Used by (10 dependency relationships)

Includes library, runtime, build and test relationships. Results load 100 at a time.

Installing and updating packages · Package details as JSON