Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Check ExportsMissing, when loaded at runtime

  • Loading branch information...
commit 9918088c200b17b97c3e459cb5c6f6ed8b6a3816 1 parent fa2572a
@dolmen authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 t/22-ExportsMissing.t
View
18 t/22-ExportsMissing.t
@@ -0,0 +1,18 @@
+use strict;
+use warnings;
+use Test::More tests => 1;
+
+my $failed;
+BEGIN {
+ $SIG{__WARN__} = sub {
+ $failed = 1;
+ fail('Warning raised');
+ };
+}
+
+require t::lib::ExportsMissing;
+t::lib::ExportsMissing->import;
+
+END {
+ pass "No warning raised when module is loaded at runtime" unless $failed;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.