notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Remember
I remember
Port details
p5-Test-MockDateTime Mock DateTime->now calls during tests
0.02 devel on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port 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: 2018-10-06 14:06:45
SVN Revision: 481365
Also Listed In: perl5
License: ART10 GPLv1+
Description:
SVNWeb : Homepage
pkg-plist: as obtained via: make generate-plist
Expand this list (6 items)
  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
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: pkg install p5-Test-MockDateTime
PKGNAME: p5-Test-MockDateTime
Flavors: there is no flavor information for this port.
distinfo:

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.26<5.27 : lang/perl5.26
  3. perl5>=5.26<5.27 : lang/perl5.26
Runtime dependencies:
  1. p5-DateTime-Format-DateParse>=0 : devel/p5-DateTime-Format-DateParse
  2. perl5>=5.26<5.27 : lang/perl5.26
There are no ports dependent upon this port

Configuration Options

USES:

Master Sites:
  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/

Number of commits found: 5

Commit History - (may be incomplete: see SVNWeb link above for full details)
DateByDescription
06 Oct 2018 13:06:45
Original commit files touched by this commit  0.02
Revision:481365
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)
27 May 2018 20:15:20
Original commit files touched by this commit  0.02
Revision:470993
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
15 Oct 2017 02:47:49
Original commit files touched by this commit  0.02
Revision:452126
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)
15 Sep 2017 08:58:50
Original commit files touched by this commit  0.02
Revision:449893
mat search for other commits by this committer
Fix license information for portgs that use "the same license as Perl".

Sponsored by:	Absolight
14 Nov 2016 06:24:05
Original commit files touched by this commit  0.02
Revision:426085
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: 5

Login
User Login
Create account

Servers and bandwidth provided by
New York Internet, iXsystems, and RootBSD

This site
What is FreshPorts?
About the authors
Issues
FAQ
How big is it?
The latest upgrade!
Privacy
Forums
Blog
Contact

Search
Enter Keywords:
 
more...

Latest Vulnerabilities
nexus2-ossNov 07
php71Nov 06
php72Nov 06
php73Nov 06
php74Nov 06
fileNov 02
mariadb101-serverNov 02
mariadb102-serverNov 02
mariadb103-serverNov 02
mariadb104-serverNov 02
mariadb55-serverNov 02
mysql56-serverNov 02
mysql57-serverNov 02
mysql80-serverNov 02
percona55-serverNov 02

10 vulnerabilities affecting 139 ports have been reported in the past 14 days

* - modified, not new

All vulnerabilities

Last updated:
2019-11-07 12:09:53


Ports
Home
Categories
Deleted ports
Sanity Test Failures
Newsfeeds

Statistics
Graphs
NEW Graphs (Javascript)
Traffic

Calculated hourly:
Port count 38031
Broken 794
Deprecated 81
Ignore 1074
Forbidden 3
Restricted 156
No CDROM 72
Vulnerable 33
Expired 7
Set to expire 51
Interactive 0
new 24 hours 6
new 48 hours9
new 7 days23
new fortnight55
new month119

Servers and bandwidth provided by
New York Internet, iXsystems, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2019 Dan Langille. All rights reserved.