| 1 | use Test::More; |
| 2 | no warnings 'void'; # Too late to run INIT block ... |
| 3 | |
| 4 | eval "use Test::Pod::Coverage tests => 1"; |
| 5 | |
| 6 | plan skip_all => "Test::Pod::Coverage required" if $@; |
| 7 | |
| 8 | { |
| 9 | local $SIG{__WARN__} = sub { |
| 10 | # adapted from Class-Trait-0.07 |
| 11 | return if $_[0] =~ /^Too late to run INIT block/; |
| 12 | goto &CORE::warn; |
| 13 | }; |
| 14 | |
| 15 | pod_coverage_ok("Socket::MsgHdr", |
| 16 | { also_private => [ |
| 17 | qr/^(?:un)?pack_cmsghdr$/, |
| 18 | qr/^control$/, |
| 19 | ] }, |
| 20 | "Socket::MsgHdr OO and default EXPORTs are covered"); |
| 21 | |
| 22 | } |