Introspector/Probe/ResolvConf.pm

filter: Statementstmt 92.3% 12 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 84.2% 16 / 19 CC 1 SCAR 1.8
CC
1
Cov
92%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Introspector/Probe/Hosts.pm ↑ Summary
1 package System::Introspector::Probe::ResolvConf;
2 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 1 ▶use System::Introspector::Util qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
5 output_from_file
6 transform_exceptions
7 1 );
8  
9 has resolv_conf_file => (
10 is => 'ro',
11 0 ▶ default => sub { '/etc/resolv.conf' },
Subroutine __ANON__: not called CC=1 SCAR=6.9
12 1 );
13  
14 1 ▶sub gather {
Subroutine gather: called CC=1 SCAR=0.0
Pod undocumented
15 1 my ($self) = @_;
16 return {
17 1 ▶ resolv_conf_file => transform_exceptions {
Subroutine __ANON__: called CC=1 SCAR=0.0
18 1 my $file = $self->resolv_conf_file;
19 return {
20 1 file_name => $file,
21 body => scalar output_from_file $file,
22 };
23 },
24 1 };
25 }
26  
27 1 1;
28  
29 __END__
« Introspector/Probe/Hosts.pm ↑ Summary