Debian Codegraph @

t/lib/T/RequireDateTime.pm

raw
1 package T::RequireDateTime;
2
3 use strict;
4 use warnings;
5
6 use Test::More 0.96;
7
8 my $dt_version = '0.1501';
9
10 sub import {
11 ## no critic (BuiltinFunctions::ProhibitStringyEval)
12 return if eval "use DateTime $dt_version; 1;" && !$@;
13
14 plan skip_all =>
15 "Cannot run tests before DateTime.pm $dt_version is installed.";
16 }
17
18 1;