4 use System::Introspector::Probe::Users;
6 my $probe = System::Introspector::Probe::Users->new;
7 my $data = $probe->gather;
9 ok((my $user = $data->{users}{ +getlogin }), 'found own user');
10 ok(defined($user->{ $_ }), "$_ is defined")
11 for qw( comment crontab gid groups home shell ssh uid username );
12 ok(not(exists $user->{crontab}{error}), 'no crontab error');
13 is($user->{ssh}{keys}{error}, undef, 'no ssh keys error');