V3/Session/Attendees.pm

filter: Statementstmt 82.1% 23 / 28 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 6 / 8 Podpod n/a totaltotal 72.5% 29 / 40 CC 3 SCAR 11.0
CC
3
Cov
72%
__ANON__
6.0
__ANON__
6.0
BEGIN
1.0
CRAP 3.0
« V3/_List.pm ↑ Summary V3/SchedulingManager.pm »
1 package Bb::Collaborate::V3::Session::Attendees;
2 7 ▶use warnings; use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 7 ▶use Mouse;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 7 ▶use Mouse::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 7 ▶use Scalar::Util;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 7 extends 'Bb::Collaborate::V3::_List';
10  
11 7 ▶use Bb::Collaborate::V3::Session::Attendee;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 7 __PACKAGE__->element_class('Bb::Collaborate::V3::SessionAttendence::Attendee');
14  
15 =head1 NAME
16  
17 Bb::Collaborate::V3::Session::Attendees - Container class for a list of session attendees
18  
19 =cut
20  
21 =head1 METHODS
22  
23 =cut
24  
25 coerce 'Bb::Collaborate::V3::Session::Attendees' => from 'ArrayRef'
26 0 ▶ => via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
27 my @attendees
28 0 ▶ = (map {Scalar::Util::blessed($_)
Branch: 1 branch
BranchTrueFalseTotal
builtin::blessed($_) ? : 0 0 0
29 ? $_
30 : Bb::Collaborate::V3::Session::Attendee->new($_)
31 } @$_);
32  
33 0 Bb::Collaborate::V3::Session::Attendees->new(\@attendees);
34 7 };
35  
36 coerce 'Bb::Collaborate::V3::Session::Attendees' => from 'HashRef'
37 0 ▶ => via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
38 0 ▶ my $attendee = Scalar::Util::blessed($_)
Branch: 1 branch
BranchTrueFalseTotal
builtin::blessed($_) ? : 0 0 0
39 ? $_
40 : Bb::Collaborate::V3::Session::Attendee->new($_);
41  
42 0 Bb::Collaborate::V3::Session::Attendees->new([ $attendee ]);
43 7 };
44  
45 7 1;
« V3/_List.pm ↑ Summary V3/SchedulingManager.pm »