M: Code style (no tabs).
This commit is contained in:
46
t/3.t
46
t/3.t
@@ -11,45 +11,45 @@ my $perl_interpreter = basename($^X);
|
||||
|
||||
$dw = new File::DirWalk();
|
||||
$dw->onDirEnter(sub {
|
||||
my ($path) = @_;
|
||||
ok(-e $path);
|
||||
ok(-d $path);
|
||||
my ($path) = @_;
|
||||
ok(-e $path);
|
||||
ok(-d $path);
|
||||
|
||||
if ($dw->currentPath() eq $perl_path) {
|
||||
return 42;
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
if ($dw->currentPath() eq $perl_path) {
|
||||
return 42;
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
});
|
||||
|
||||
is( $dw->walk($perl_path), 42 );
|
||||
|
||||
$dw = new File::DirWalk();
|
||||
$dw->onDirEnter(sub {
|
||||
my ($path) = @_;
|
||||
ok(-e $path);
|
||||
ok(-d $path);
|
||||
my ($path) = @_;
|
||||
ok(-e $path);
|
||||
ok(-d $path);
|
||||
|
||||
if ($dw->currentDir() eq $perl_path) {
|
||||
return 42;
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
if ($dw->currentDir() eq $perl_path) {
|
||||
return 42;
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
});
|
||||
|
||||
is( $dw->walk($perl_path), 42 );
|
||||
|
||||
$dw = new File::DirWalk();
|
||||
$dw->onFile(sub {
|
||||
my ($path) = @_;
|
||||
ok(-e $path);
|
||||
ok(-f $path);
|
||||
my ($path) = @_;
|
||||
ok(-e $path);
|
||||
ok(-f $path);
|
||||
|
||||
if ($dw->currentBasename() eq $perl_interpreter) {
|
||||
return 42;
|
||||
}
|
||||
if ($dw->currentBasename() eq $perl_interpreter) {
|
||||
return 42;
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
return SUCCESS;
|
||||
});
|
||||
|
||||
is( $dw->walk($perl_path), 42 );
|
||||
|
||||
Reference in New Issue
Block a user