{"added":null,"apiVersion":1,"behindSince":null,"buildDepends":[],"categories":["devel","perl5"],"comment":"Mock DateTime-\u003enow calls during tests","compare":null,"dependentCount":null,"description":"Getting the current time sometimes is not very helpful\nfor testing scenarios.\nInstead, if you could obtain a known value during the runtime\nof a testcase will make your results predictable.\n\nWhy another Date Mocker?\nI wanted something simple with a very concise usage pattern\nand a mocked date should only exist and stay constant inside a scope.\nAfter leaving the scope the current time should be back.\nThis lead to this tiny module.\n\nThis simple module allows faking a given date and time\nfor the runtime of a subsequent code block.\nBy default the on keyword is exported into the namespace\nof the test file.\nThe date to get mocked must be in a format that is recognized\nby DateTime::Format::DateParse.","flavors":[],"html":"https://daemonports.org/dragonfly/devel/p5-Test-MockDateTime/","kind":"port","lastUpdate":null,"license":["ART10","GPLv1+"],"maintainer":"perl@FreeBSD.org","name":"p5-Test-MockDateTime","newest":true,"newestVersion":"0.02","noVulnData":false,"origin":"devel/p5-Test-MockDateTime","otherSystems":[{"maintainer":"perl@FreeBSD.org","newest":true,"origin":"devel/p5-Test-MockDateTime","path":"/devel/p5-Test-MockDateTime/","system":"FreeBSD","version":"0.02"},{"maintainer":"perl@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/p5-Test-MockDateTime","path":"","system":"HardenedBSD","version":"0.02"},{"maintainer":"perl@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/p5-Test-MockDateTime","path":"","system":"GhostBSD","version":"0.02"}],"packages":null,"pkgName":"p5-Test-MockDateTime-0.02","related":null,"repository":"DPorts","requiredBy":[],"requiredByCount":0,"runDepends":["devel/p5-DateTime-Format-DateParse","lang/perl5.36"],"status":null,"system":"dragonfly","systemLabel":"DragonFly","version":"0.02","versions":null,"vulnerabilities":null,"www":"https://metacpan.org/release/Test-MockDateTime"}
