File: untaint.t

package info (click to toggle)
libwww-mechanize-perl 1.73-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 668 kB
  • ctags: 143
  • sloc: perl: 3,360; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 381 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl

use strict;
use warnings;
use URI::file;

use Test::More;

eval 'use Test::NoWarnings';
if ( $@ ) {
    plan( skip_all => 'Test::NoWarnings not installed' );
}

plan( tests => 2 ); # the use_ok and then the warning check
$ENV{test} = 14;
use_ok( 'WWW::Mechanize' );
my $uri = URI::file->new_abs( 't/find_link_id.html' )->as_string;
WWW::Mechanize->new->get($uri);