ger/Output/Null.pm

filter: Statementstmt 41.6% 5 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 27.7% 5 / 18 CC 1 SCAR 6.9
CC
1
Cov
42%
meta
2.0
get_hooks
2.0
__ANON__
2.0
CRAP 2.0
« ger/Plugin.pm ↑ Summary ger/Format/None.pm »
1 ## no critic: TestingAndDebugging::RequireUseStrict
2 package Log::ger::Output::Null;
3  
4 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
5 1 our $DATE = '2023-12-29'; # DATE
6 1 our $DIST = 'Log-ger'; # DIST
7 1 our $VERSION = '0.042'; # VERSION
8  
9 0 ▶sub meta { +{
Subroutine meta: not called CC=1 SCAR=6.9
Pod undocumented
10 0 v => 2,
11 } }
12  
13 0 ▶sub get_hooks {
Subroutine get_hooks: not called CC=1 SCAR=6.9
Pod undocumented
14 return {
15 create_outputter => [
16 __PACKAGE__, # key
17 50, # priority
18 0 ▶ sub { # hook
Subroutine __ANON__: not called CC=1 SCAR=6.9
19 0 my %hook_args = @_; # see Log::ger::Manual::Internals/"Arguments passed to hook"
20  
21 0 $Log::ger::_outputter_is_null = 1;
22 0 ▶ my $outputter = sub {0};
Subroutine __ANON__: not called CC=1 SCAR=6.9
23 0 [$outputter];
24 0 }],
25 };
26 }
27  
28 1 1;
29 # ABSTRACT: Null output
30  
31 __END__
« ger/Plugin.pm ↑ Summary ger/Format/None.pm »