import p5-Test-MockTime

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.
This commit is contained in:
simon 2009-02-05 22:04:58 +00:00
parent 6291e71bdd
commit 60ee9f6eae
4 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,19 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/02/05 22:04:58 simon Exp $
COMMENT = replaces actual time with simulated time
MODULES = cpan
DISTNAME = Test-MockTime-0.09
CATEGORIES = devel
MAINTAINER = Simon Bertrang <simon@openbsd.org>
# Perl
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MAKE_ENV += TEST_POD=1
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (Test-MockTime-0.09.tar.gz) = zDlFxPjTM6GpMUwKmH7zOg==
RMD160 (Test-MockTime-0.09.tar.gz) = 1fSEjNH2we18qUFTF6tNZEIAmaE=
SHA1 (Test-MockTime-0.09.tar.gz) = /12bpahVotomCcc3/IwxpI3u6tE=
SHA256 (Test-MockTime-0.09.tar.gz) = Y7e+G+bNP53omZfOtAxoBSPVj84RNzef7tP5P6OPWcg=
SIZE (Test-MockTime-0.09.tar.gz) = 4286

View File

@ -0,0 +1,5 @@
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.

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/02/05 22:04:58 simon Exp $
${P5SITE}/Test/
${P5SITE}/Test/MockTime.pm
${P5SITE}/Test/MockTime.pod
@man man/man3p/Test::MockTime.3p