4 |
|
|
5 |
my $debug = @ARGV ? 1 : 0; |
my $debug = @ARGV ? 1 : 0; |
6 |
|
|
7 |
use Test::More tests => 15; |
use Test::More tests => 21; |
8 |
use lib 'lib'; |
use lib 'lib'; |
9 |
|
|
10 |
#use Devel::LeakTrace::Fast; |
#use Devel::LeakTrace::Fast; |
27 |
is( $o->meta->name, 'Frey::Introspect', 'meta->name' ); |
is( $o->meta->name, 'Frey::Introspect', 'meta->name' ); |
28 |
|
|
29 |
ok( defined $o->debug, 'debug' ); |
ok( defined $o->debug, 'debug' ); |
30 |
|
ok( ! $o->path, 'no path' ); |
31 |
|
|
32 |
ok( my $examine = $o->examine, 'examine' ); |
ok( my $examine = $o->examine, 'examine' ); |
33 |
diag dump( $examine ) if $debug; |
diag dump( $examine ) if $debug; |
34 |
|
|
35 |
|
ok( $o->path, 'path' ); |
36 |
|
|
37 |
|
my $cmd = 'js ' . $o->path; |
38 |
|
my $syntax = `$cmd 2>&1`; |
39 |
|
diag $syntax; |
40 |
|
|
41 |
|
ok( ! $syntax, 'syntax' ); |
42 |
} |
} |