File: preload.t

package info (click to toggle)
libio-socket-timeout-perl 0.32-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 160 kB
  • sloc: perl: 330; makefile: 2
file content (37 lines) | stat: -rw-r--r-- 1,241 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
use strict;
use warnings;

use FindBin qw($Bin);
use Test::More;

use IO::Socket::Timeout qw(IO::Socket::INET IO::Socket::Unix);

ok exists($INC{'IO/Socket/Unix__with__IO/Socket/Timeout/Role/SetSockOpt.pm'}),
  'INC contains composed class IO::Socket::Unix with SetSockOpt role"';

like($INC{'IO/Socket/Unix__with__IO/Socket/Timeout/Role/SetSockOpt.pm'},
     qr|IO/Socket/Timeout\.pm$|, 'file name is ok');

ok exists($INC{'IO/Socket/Unix__with__IO/Socket/Timeout/Role/PerlIO.pm'}),
  'INC contains composed class IO::Socket::Unix with PerlIO role"';

like($INC{'IO/Socket/Unix__with__IO/Socket/Timeout/Role/PerlIO.pm'},
     qr|IO/Socket/Timeout\.pm$|, 'file name is ok');

ok exists($INC{'IO/Socket/INET__with__IO/Socket/Timeout/Role/SetSockOpt.pm'}),
  'INC contains composed class IO::Socket::INET with SetSockOpt role"';

like($INC{'IO/Socket/INET__with__IO/Socket/Timeout/Role/SetSockOpt.pm'},
     qr|IO/Socket/Timeout\.pm$|, 'file name is ok');

ok exists ($INC{'IO/Socket/INET__with__IO/Socket/Timeout/Role/PerlIO.pm'}),
  'INC contains composed class IO::Socket::INET with PerlIO role"';

like($INC{'IO/Socket/INET__with__IO/Socket/Timeout/Role/PerlIO.pm'},
     qr|IO/Socket/Timeout\.pm$|, 'file name is ok');




done_testing;