File: with_variable.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 (20 lines) | stat: -rw-r--r-- 364 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
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/../../";
use Test::More;
use t::Util;

test('with variable', <<'END', {Mouse => 0});
use Mouse;
sub load_plugin {
    my ($self, $plugin) = @_;

    my $plug = 'TheEye::Plugin::'.$plugin;
    print STDERR "Loading $plugin Plugin\n" if $self->is_debug;
    with($plug);
    return;
}
END

done_testing;