FileHandles probe tests
Robert 'phaylon' Sedlacek [Mon, 7 May 2012 21:01:35 +0000 (21:01 +0000)]
t/filehandles.t [new file with mode: 0644]

diff --git a/t/filehandles.t b/t/filehandles.t
new file mode 100644 (file)
index 0000000..caa63fe
--- /dev/null
@@ -0,0 +1,12 @@
+use strictures 1;
+use Test::More;
+
+use System::Introspector::FileHandles;
+
+my $probe = System::Introspector::FileHandles->new;
+my $data  = $probe->gather;
+
+ok(@$data, 'received filehandle data');
+ok(not(grep { not keys %$_ } @$data), 'keys in all entries');
+
+done_testing;