Debian Codegraph @

t/12stages-post_blockstart.t

raw
1 #!/usr/bin/perl
2
3 use v5.14;
4 use warnings;
5
6 use Test2::V0;
7
8 use lib "t";
9 use testcase "t::stages";
10
11 our $VAR;
12 BEGIN { $^H{"t::stages/permit"} = 1; }
13
14 {
15 BEGIN { $^H{'t::stages/post_blockstart-capture'} = 1; }
16
17 BEGIN { $VAR = "before" }
18 stages capture {
19 BEGIN { $VAR = "inside" }
20 }
21
22 is( $t::stages::captured, "before",
23 'captured value of $VAR before block' );
24 }
25
26 done_testing;