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

diff --git a/t/processes.t b/t/processes.t
new file mode 100644 (file)
index 0000000..5158aae
--- /dev/null
@@ -0,0 +1,13 @@
+use strictures 1;
+use Test::More;
+
+use System::Introspector::Processes;
+
+my $probe = System::Introspector::Processes->new;
+my $data  = $probe->gather;
+
+ok(@$data, 'received processes');
+ok(not(grep { not $_->{pid} } @$data), 'all entries have pid');
+ok(not(grep { not $_->{command} } @$data), 'all entries have command');
+
+done_testing;