Multigit/Loop.pm

filter: Statementstmt 89.4% 17 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 88.4% 23 / 26 CC 1 SCAR 1.5
CC
1
Cov
89%
loop
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Multigit/Script.pm ↑ Summary
1 package App::Multigit::Loop;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use IO::Async::Loop;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use 5.014;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 our $VERSION = '0.18';
9  
10 2 ▶use base qw(Exporter);
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 2 our @EXPORT_OK = qw(loop);
13  
14 =head1 NAME
15  
16 App::Multigit::Loop - Holds the loop for App::Multigit
17  
18 =head1 DESCRIPTION
19  
20 This is here so App::Multigit and App::Multigit::Repo don't have to rely on each
21 other.
22  
23 =head1 FUNCTIONS
24  
25 =head2 loop
26  
27 Returns the same IO::Async::Loop every time it's called in the same process tree.
28  
29 Exported by request.
30  
31 =cut
32  
33 0 ▶sub loop {
Subroutine loop: not called CC=1 SCAR=6.9
Pod documented
34 0 state $loop = IO::Async::Loop->new;
35 0 $loop;
36 }
37  
38 2 1;
39  
40 __END__
« Multigit/Script.pm ↑ Summary