lib/Flux/Storage/Role/ClientList.pm

filter: Statementstmt 63.6% 7 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 25.0% 1 / 4 Podpod 100% 3 / 3 totaltotal 61.1% 11 / 18 CC 1 SCAR 2.2
CC
1
Cov
64%
has_client
2.0
BEGIN
1.0
register_client
1.0
CRAP 1.2
« lib/Flux/Storage/Memory/In.pm ↑ Summary lib/Flux/Simple.pm »
1 package Flux::Storage::Role::ClientList;
2 {
3 2 $Flux::Storage::Role::ClientList::VERSION = '1.03';
4 }
5  
6 # ABSTRACT: common methods for storages with named clients
7  
8  
9 2 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 requires 'client_names';
12  
13 0 ▶sub register_client($$) {
Subroutine register_client: not called CC=1 SCAR=0.0
Pod documented
14 }
15  
16 0 ▶sub unregister_client($$) {
Subroutine unregister_client: not called CC=1 SCAR=0.0
Pod documented
17 }
18  
19 0 ▶sub has_client {
Subroutine has_client: not called CC=1 SCAR=6.9
Pod documented
20 0 my $self = shift;
21 0 my ($name) = @_;
22  
23 0 return grep { $_ eq $name } $self->client_names;
24 }
25  
26  
27 2 1;
28  
29 __END__
« lib/Flux/Storage/Memory/In.pm ↑ Summary lib/Flux/Simple.pm »