File Coverage

blib/lib/Sys/Info/Driver/Linux.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1             package Sys::Info::Driver::Linux;
2 2     2   12 use strict;
  2         4  
  2         88  
3 2     2   12 use warnings;
  2         5  
  2         77  
4 2     2   11 use vars qw( $VERSION @ISA @EXPORT );
  2         3  
  2         127  
5 2     2   10 use base qw( Exporter );
  2         4  
  2         266  
6              
7             $VERSION = '0.7903';
8             @EXPORT = qw( proc );
9              
10 2         282 use constant proc => { ## no critic (NamingConventions::Capitalization)
11             loadavg => '/proc/loadavg', # average cpu load
12             cpuinfo => '/proc/cpuinfo', # cpu information
13             uptime => '/proc/uptime', # uptime file
14             version => '/proc/version', # os version
15             meminfo => '/proc/meminfo',
16             swaps => '/proc/swaps',
17             fstab => '/etc/fstab', # for filesystem type of the current disk
18             resolv => '/etc/resolv.conf',
19             timezone => '/etc/timezone',
20             issue => '/etc/issue',
21 2     2   12 };
  2         4  
22              
23             1;
24              
25             __END__