Introspector/Probe/Hosts.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/Host.pm ↑ Summary Introspector/Probe/ResolvConf.pm »
1 package System::Introspector::Probe::Hosts;
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 hosts_file => (
10 is => 'ro',
11 0 ▶ default => sub { '/etc/hosts' },
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 1 my $file = $self->hosts_file;
17 return {
18 1 ▶ hosts_file => transform_exceptions {
Subroutine __ANON__: called CC=1 SCAR=0.0
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/Host.pm ↑ Summary Introspector/Probe/ResolvConf.pm »