9
unless ( $ENV{DISPLAY} or $^O eq 'MSWin32' ) {
10
plan skip_all => 'Needs DISPLAY';
18
# badcode was complaining it was missing
19
# in truth, this test doesn't appear to need padre
20
# to run, but it's either add this to satisfy the xt/badcode.t
21
# test or add it to the %SKIP, which makes even less sense.
23
require Padre::Document::Perl;
25
# Create the object so that Padre->ide works
26
#my $app = Padre->new;
27
#isa_ok( $app, 'Padre' );
29
*_find_sub_decl_line_number = *Padre::Document::Perl::_find_sub_decl_line_number;
37
is( _find_sub_decl_line_number( 'test', $code ), 1 );
47
is( _find_sub_decl_line_number( 'test', $code ), 2 );
56
is( _find_sub_decl_line_number( 'test', $code ), 2 );
65
is( _find_sub_decl_line_number( 'test', $code ), 2 );