File: release-pp-is-loaded.t

package info (click to toggle)
libparams-validate-perl 1.06-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 776 kB
  • sloc: perl: 2,179; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 518 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

BEGIN {
  unless ($ENV{RELEASE_TESTING}) {
    require Test::More;
    Test::More::plan(skip_all => 'these tests are for release candidate testing');
  }
}

use strict;
use warnings;

use Test::More;

BEGIN {
    $ENV{PV_TEST_PERL}                  = 1;
    $ENV{PV_WARN_FAILED_IMPLEMENTATION} = 1;
}

use Module::Implementation 0.04 ();
use Params::Validate;

is(
    Module::Implementation::implementation_for('Params::Validate'),
    'PP',
    'PP implementation is loaded when env var is set'
);

done_testing();