File: Test.pm

package info (click to toggle)
libb-lint-perl 1.22-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 144 kB
  • sloc: perl: 1,128; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 392 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package B::Lint::Plugin::Test;
use strict;
use warnings;

# This package will be loaded automatically by Module::Plugin when
# B::Lint loads.
warn 'got here!';

sub match {
    my $op = shift @_;

    # Prints to STDERR which will be picked up by the test running in
    # lint.t
    warn "Module::Pluggable ok.\n";

    # Ignore this method once it happens once.
    *match = sub { };
}

1;