File Coverage

lib/Git/Lint/Command.pm
Criterion Covered Total %
statement 13 15 86.6
branch n/a
condition n/a
subroutine 4 5 80.0
pod 1 1 100.0
total 18 21 85.7


line stmt bran cond sub pod time code
1             package Git::Lint::Command;
2              
3 15     15   274904 use strict;
  15         30  
  15         647  
4 15     15   83 use warnings;
  15         36  
  15         813  
5              
6 15     15   8599 use Capture::Tiny;
  15         389341  
  15         2318  
7              
8             our $VERSION = '1.000';
9              
10             sub run {
11 10     10 1 3791 my $command = shift;
12              
13             my ( $stdout, $stderr, $exit ) = Capture::Tiny::capture {
14 0     0   0 system( @{$command} );
  0         0  
15 10         51 };
16              
17 10         132 chomp($stderr);
18              
19 10         60 return ( $stdout, $stderr, $exit );
20             }
21              
22             1;
23              
24             __END__