From: Robert 'phaylon' Sedlacek Date: Mon, 7 May 2012 21:01:35 +0000 (+0000) Subject: FileHandles probe tests X-Git-Tag: v0.001_001~125 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d52d96e6e328aba975b4748f1996f566665943fb;p=scpubgit%2FSystem-Introspector.git FileHandles probe tests --- diff --git a/t/filehandles.t b/t/filehandles.t new file mode 100644 index 0000000..caa63fe --- /dev/null +++ b/t/filehandles.t @@ -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;