Name : perl-Test-NoTty
| |
Version : 0.03
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2023-03-21 06:49:37
|
Group : Unspecified
| Source RPM : perl-Test-NoTty-0.03-lp154.1.1.src.rpm
|
Size : 0.01 MB
| |
Packager : https://www_suse_com/
| |
Summary : Test::NoTty Perl module
|
Description :
Test your code that handles failure to open _/dev/tty_
On a *nix system the special file _/dev/tty_ always exists, and opening it gives you a(nother) file handle attached to your controlling terminal. This is useful if you want direct user input, such as entering passwords or passphrases, even if \'STDIN\' or \'STDOUT\' are redirected.
But what happens if your code is running non-interactively? Such as servers, cron jobs, or just CPAN testers? _/dev/tty_ still exists, but opening it will fail. Your tests need to cover this case. But how do you test your tests as you write them, when you\'re running them in a terminal session?
That\'s the purpose of this module. It encapsulates the complex setup dance with \'fork\', \'setsid\' _etc_, to locally drop the controlling terminal, so that you can interactively run code to test those code paths.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.4/noarch |