blib/lib/Pfacter/kernel.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 8 | 75.0 |
branch | 3 | 6 | 50.0 |
condition | n/a | ||
subroutine | 1 | 1 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 10 | 16 | 62.5 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Pfacter::kernel; | ||||||
2 | |||||||
3 | # | ||||||
4 | |||||||
5 | sub pfact { | ||||||
6 | 1 | 1 | 0 | 27 | my ( $r ); | ||
7 | |||||||
8 | 1 | 50 | 25 | if ( -e '/bin/uname' ) { $r = qx( /bin/uname -s ); } | |||
1 | 7343 | ||||||
9 | 1 | 50 | 60 | if ( -e '/usr/bin/uname' ) { $r = qx( /usr/bin/uname -s ); } | |||
0 | 0 | ||||||
10 | |||||||
11 | 1 | 50 | 18 | if ( $r ) { return( $r ); } | |||
1 | 73 | ||||||
12 | 0 | else { return( 0 ); } | |||||
13 | } | ||||||
14 | |||||||
15 | 1; |