Debian Codegraph @

cpan/Test2-Suite/t/modules/Require/AutomatedTesting.t

raw
1 use Test2::Bundle::Extended -target => 'Test2::Require::AutomatedTesting';
2
3 {
4 local %ENV = %ENV;
5 $ENV{AUTOMATED_TESTING} = 0;
6 is($CLASS->skip(), 'Automated test, set the $AUTOMATED_TESTING environment variable to run it', "will skip");
7
8 $ENV{AUTOMATED_TESTING} = 1;
9 is($CLASS->skip(), undef, "will not skip");
10 }
11
12 done_testing;