File: syntax_collector.t

package info (click to toggle)
libperl-prereqscanner-notquitelite-perl 0.9917-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 944 kB
  • sloc: perl: 5,239; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 662 bytes parent folder | download | duplicates (3)
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
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/../";
use Test::More;
use t::Util;

test('spec follows', <<'END', {'Syntax::Collector' => 0, strict => 0, warnings => 0, 'Scalar::Util' => 0});
use Syntax::Collector q/
    use strict 0;
    use warnings 0 FATAL => 'all';
    use Scalar::Util 0 qw(blessed);
/;
END

test('-collect', <<'END', {'Syntax::Collector' => 0, strict => 0, warnings => 0, 'Scalar::Util' => 0});
use Syntax::Collector -collect => q/
    use strict 0;
    use warnings 0 FATAL => 'all';
    use Scalar::Util 0 qw(blessed);
/;
END

test('no spec', <<'END', {'Syntax::Collector' => 0});
use Syntax::Collector;
END

done_testing;