BSD Ports

devel/p5-Test-MockTime 0.17 MidnightBSD

Replaces actual time with simulated time

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
artistic, gpl
Categories
devel, perl5

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

The newest version among them is 0.17, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDdevel/p5-Test-MockTime0.17 newestno data-[email protected]-
FreeBSDdevel/p5-Test-MockTime0.17 newestnone known-[email protected]-
OpenBSDdevel/p5-Test-MockTime0.17p0 newestno data-Benoit Lecocq <[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]-
HardenedBSDdevel/p5-Test-MockTime0.17 newestno data-[email protected]-
GhostBSDdevel/p5-Test-MockTime0.17 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

mport install p5-Test-MockTime

From mports:

cd /usr/mports/devel/p5-Test-MockTime && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Test-MockTime>0:devel/p5-Test-MockTime

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

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/Test/MockTime.pm
  • %%PERL5_MAN3%%/Test::MockTime.3.gz
distinfo 1
FileSizeSHA256
Test-MockTime-0.17.tar.gz58853363e118b2606f1d6abc956f22b0d09109772b7086155fb5c9c7f983350602f9
Master sites 1
  • CPAN