From: Robert 'phaylon' Sedlacek Date: Tue, 8 May 2012 18:36:18 +0000 (+0000) Subject: Groups probe tests X-Git-Tag: v0.001_001~119 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9daad8a763bd70f41c61315b8d46379cd675a898;p=scpubgit%2FSystem-Introspector.git Groups probe tests --- diff --git a/t/groups.t b/t/groups.t new file mode 100644 index 0000000..bba6548 --- /dev/null +++ b/t/groups.t @@ -0,0 +1,14 @@ +use strictures 1; +use Test::More; + +use System::Introspector::Groups; + +my $probe = System::Introspector::Groups->new; +my $data = $probe->gather; + +ok scalar(keys %$data), 'received group data'; +ok not(grep { not defined $_->{gid} } values %$data), 'all have gid'; +ok not(grep { not defined $_->{name} } values %$data), 'all have name'; +ok not(grep { not defined $_->{users} } values %$data), 'all have users'; + +done_testing;