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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-Test-MockTime | 0.17 |
| OpenBSD | devel/p5-Test-MockTime | 0.17p0 |
| NetBSD | time/p5-Test-MockTime | 0.17nb9 |
| 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:
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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.17 | 0.17 | 0.17 | 0.17 | 0.17 |
| FreeBSD:14:quarterly | 0.17 | 0.17 | n/a | 0.17 | 0.17 |
| FreeBSD:15:latest | 0.17 | 0.17 | n/a | 0.17 | 0.17 |
| FreeBSD:15:quarterly | 0.17 | 0.17 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.17 | 0.17 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
Required by 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
| File | Size | SHA256 |
|---|---|---|
| Test-MockTime-0.17.tar.gz | 5885 | 3363e118b2606f1d6abc956f22b0d09109772b7086155fb5c9c7f983350602f9 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.