notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
Port details
p5-Test-MockDateTime Mock DateTime->now calls during tests
0.02 devel on this many watch lists=2 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 0.02Version of this port present on the latest quarterly branch.
Maintainer: perl@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2016-11-14 06:24:15
Last Update: 2022-09-07 21:58:51
Commit Hash: fb16dfe
People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py39-PyOpenGL, p5-Sane
Also Listed In: perl5
License: ART10 GPLv1+
WWW:
https://metacpan.org/release/Test-MockDateTime
Description:
Getting the current time sometimes is not very helpful for testing scenarios. Instead, if you could obtain a known value during the runtime of a testcase will make your results predictable. Why another Date Mocker? I wanted something simple with a very concise usage pattern and a mocked date should only exist and stay constant inside a scope. After leaving the scope the current time should be back. This lead to this tiny module. This simple module allows faking a given date and time for the runtime of a subsequent code block. By default the on keyword is exported into the namespace of the test file. The date to get mocked must be in a format that is recognized by DateTime::Format::DateParse.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (9 items)
Collapse this list.
  1. /usr/local/share/licenses/p5-Test-MockDateTime-0.02/catalog.mk
  2. /usr/local/share/licenses/p5-Test-MockDateTime-0.02/LICENSE
  3. /usr/local/share/licenses/p5-Test-MockDateTime-0.02/ART10
  4. /usr/local/share/licenses/p5-Test-MockDateTime-0.02/GPLv1+
  5. lib/perl5/site_perl/Test/MockDateTime.pm
  6. lib/perl5/site_perl/man/man3/Test::MockDateTime.3.gz
  7. @owner
  8. @group
  9. @mode
Collapse this list.
Dependency lines:
  • p5-Test-MockDateTime>0:devel/p5-Test-MockDateTime
To install the port:
cd /usr/ports/devel/p5-Test-MockDateTime/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/p5-Test-MockDateTime
  • pkg install p5-Test-MockDateTime
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: p5-Test-MockDateTime
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1478797177 SHA256 (Test-MockDateTime-0.02.tar.gz) = c6370a58b9f291fc205121caf92a89865451d49559b0163a8dc7e606f34878dc SIZE (Test-MockDateTime-0.02.tar.gz) = 9837

Packages (timestamps in pop-ups are UTC):
p5-Test-MockDateTime
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest0.020.020.020.020.02-0.02-
FreeBSD:13:quarterly0.020.020.020.020.020.020.020.02
FreeBSD:14:latest0.020.020.020.020.020.02-0.02
FreeBSD:14:quarterly0.020.02-0.020.020.020.020.02
FreeBSD:15:latest0.020.02n/a0.02n/a0.020.020.02
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. p5-DateTime-Format-DateParse>=0 : devel/p5-DateTime-Format-DateParse
  2. perl5>=5.32.r0<5.33 : lang/perl5.32
  3. perl5>=5.32.r0<5.33 : lang/perl5.32
Runtime dependencies:
  1. p5-DateTime-Format-DateParse>=0 : devel/p5-DateTime-Format-DateParse
  2. perl5>=5.32.r0<5.33 : lang/perl5.32
There are no ports dependent upon this port

Configuration Options:
No options to configure
Options name:
devel_p5-Test-MockDateTime
USES:
perl5
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (12 items)
Collapse this list.
  1. ftp://ftp.auckland.ac.nz/pub/perl/CPAN/modules/by-module/Test/
  2. ftp://ftp.cpan.org/pub/CPAN/modules/by-module/
  3. ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Test/
  4. ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/Test/
  5. ftp://ftp.kddlabs.co.jp/lang/perl/CPAN/modules/by-module/Test/
  6. ftp://ftp.mirrorservice.org/sites/cpan.perl.org/CPAN/modules/by-module/Test/
  7. http://backpan.perl.org/modules/by-module/Test/
  8. http://ftp.jaist.ac.jp/pub/CPAN/modules/by-module/Test/
  9. http://ftp.twaren.net/Unix/Lang/CPAN/modules/by-module/Test/
  10. https://cpan.metacpan.org/modules/by-module/
  11. https://cpan.metacpan.org/modules/by-module/Test/
  12. https://www.cpan.org/modules/by-module/Test/
Collapse this list.

Number of commits found: 9

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
07 Sep 2022 21:58:51
commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
0.02
07 Sep 2022 21:10:59
commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
0.02
07 Apr 2021 08:09:01
commit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455c files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
0.02
06 Apr 2021 14:31:07
commit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
0.02
06 Oct 2018 13:06:45
Revision:481365Original commit files touched by this commit
des search for other commits by this committer
Fix every instance of RUN_DEPENDS:=${BUILD_DEPENDS} in p5 ports, except
for where it resulted in a change in output from build-depends-list or
run-depends-list.

Approved by:	portmgr (adamw)
0.02
27 May 2018 20:15:20
Revision:470993Original commit files touched by this commit
sunpoet search for other commits by this committer
Update WWW

search.cpan.org is shutting down.
It will redirect to metacpan.org after June 25, 2018.

With hat:	perl
0.02
15 Oct 2017 02:47:49
Revision:452126Original commit files touched by this commit
pi search for other commits by this committer
databases/p5-Dancer2-Session-DBIC
databases/p5-Interchange6-Schema
devel/p5-MooseX-CoverableModifiers
devel/p5-Test-MockDateTime
devel/p5-Test-Roo
devel/p5-superclass
mail/p5-Email-MIME-RFC2047
mail/p5-Mail-Box-IMAP4-SSL
security/p5-Dancer-Plugin-Auth-Extensible
security/p5-Dancer-Plugin-Auth-Extensible-Provider-Usergroup
security/p5-Dancer2-Plugin-Auth-Extensible
security/p5-Dancer2-Plugin-Auth-Extensible-Provider-DBIC
security/p5-Dancer2-Plugin-Auth-Extensible-Provider-Database
security/p5-Dancer2-Plugin-Auth-Extensible-Provider-IMAP
security/p5-Dancer2-Plugin-Auth-Extensible-Provider-Usergroup
(Only the first 15 lines of the commit message are shown above View all of this commit message)
0.02
15 Sep 2017 08:58:50
Revision:449893Original commit files touched by this commit
mat search for other commits by this committer
Fix license information for portgs that use "the same license as Perl".

Sponsored by:	Absolight
0.02
14 Nov 2016 06:24:05
Revision:426085Original commit files touched by this commit
pi search for other commits by this committer
New port: devel/p5-Test-MockDateTime

Getting the current time sometimes is not very helpful
for testing scenarios.
Instead, if you could obtain a known value during the runtime
of a testcase will make your results predictable.

Why another Date Mocker?
I wanted something simple with a very concise usage pattern
and a mocked date should only exist and stay constant inside a scope.
After leaving the scope the current time should be back.
This lead to this tiny module.

This simple module allows faking a given date and time
for the runtime of a subsequent code block.
By default the on keyword is exported into the namespace
of the test file.
The date to get mocked must be in a format that is recognized
by DateTime::Format::DateParse.

WWW: http://search.cpan.org/dist/Test-MockDateTime/

PR:		214397
Submitted by:	Henk van Oers <hvo.pm@xs4all.nl>

Number of commits found: 9