BSD Ports

devel/p5-Test-MockTime 0.17 FreeBSD

Replaces actual time with simulated time

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
devel, perl5
Package size
8.7 KiB, 15.7 KiB installed

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

SystemPortVersion
FreeBSDdevel/p5-Test-MockTime0.17
OpenBSDdevel/p5-Test-MockTime0.17p0
NetBSDtime/p5-Test-MockTime0.17nb9
DragonFlydevel/p5-Test-MockTime0.17
MidnightBSDdevel/p5-Test-MockTime0.17
HardenedBSDdevel/p5-Test-MockTime0.17
GhostBSDdevel/p5-Test-MockTime0.17

Install

Binary package:

pkg install p5-Test-MockTime

From the ports tree:

cd /usr/ports/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

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.170.170.170.170.17
FreeBSD:14:quarterly0.170.17n/a0.170.17
FreeBSD:15:latest0.170.17n/a0.170.17
FreeBSD:15:quarterly0.170.17n/an/an/a
FreeBSD:16:latest0.170.17n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 1

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

Commit history 0

No commits in the history this site was built from.