Debian Codegraph @

t/ref.t

raw symbols SCIP
1 use Test::Morescip-perl cpan autobox-Core 1.33 Test/More/ qw(no_plan);
2 use strictscip-perl cpan autobox-Core 1.33 strict/;
3 use warningsscip-perl cpan autobox-Core 1.33 warnings/;
4
5 use autobox::Corescip-perl cpan autobox-Core 1.33 autobox/Core/;
6
7 my %struct = (
8 ARRAY => [ 'foo' ],
9 HASH => { 'foo' => 1 },
10 CODE => sub { 'foo' },
11 );
12
13 foreach my $reftype ( keysscip-perl cpan autobox-Core 1.33 main/keys(). %struct ) {
14 is $structscip-perl cpan autobox-Core 1.33 main/$struct.{$refscip-perl cpan autobox-Core 1.33 main/ref().type}->ref, $reftype;
15 }
16
17 TODO: {
18 todo_skipscip-perl cpan autobox-Core 1.33 main/todo_skip(). "Make it work for Regexp, Scalar and Glob", 3;
19 my %todo = (
20 Regexp => qr/foo/,
21 SCALAR => \'foo',
22 GLOB => \*STDIN,
23 );
24
25 foreach my $reftype ( keysscip-perl cpan autobox-Core 1.33 main/keys(). %todo ) {
26 is $todoscip-perl cpan autobox-Core 1.33 main/$todo.{$refscip-perl cpan autobox-Core 1.33 main/ref().type}->ref, $reftype;
27 }
28 }
29