added lines_from_command util
[scpubgit/System-Introspector.git] / t / diskusage.t
CommitLineData
2e77eeef 1use strictures 1;
2use Test::More;
3
4use System::Introspector::DiskUsage;
5
6my $probe = System::Introspector::DiskUsage->new;
7my $data = $probe->gather;
8
9ok scalar(@$data), 'received data';
10my @fields = qw( filesystem blocks_1024 used available capacity mount_point );
11for my $field (@fields) {
12 ok not(grep { not defined $_->{$field} } @$data), "all have $field";
13}
14
15done_testing;