IO-Interactive-Tiny
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
t/01.is_interactive.t view on Meta::CPAN
{
ok open my $manifest_fh, '<', "MANIFEST"; # any ol file will do.
ok !IO::Interactive::Tiny::is_interactive($manifest_fh);
my $old_fh = select $manifest_fh;
ok !IO::Interactive::Tiny::is_interactive(), 'defaults to selected filehandle';
select $old_fh;
}
{
local @ARGV = qw(-);
ok IO::Interactive::Tiny::is_interactive();
@ARGV = (1,2,3);
ok IO::Interactive::Tiny::is_interactive();
}
}
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.094 second using v1.00-cache-2.02-grep-82fe00e-cpan-da92000dfeb )