Passing/Exception.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 2 / 2 totaltotal 100% 16 / 16 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
as_hash
1.0
CRAP 1.0
« Passing/Output/Test.pm ↑ Summary Passing/Exception/ConnectionDisconnected.pm »
1 package Message::Passing::Exception;
2 7 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 7 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 sub as_hash {
6 4 ▶ return { %{ $_[0] }, class => ref($_[0]) }
Subroutine as_hash: called CC=1 SCAR=0.0
Pod documented
7 }
8  
9 sub pack {
10 2 ▶ $_[0]->as_hash;
Subroutine pack: called CC=1 SCAR=0.0
Pod documented
11 }
12  
13 7 1;
14  
15 =head1 NAME
16  
17 Message::Passing::Exception - Base role for Message::Passing exceptions
18  
19 =head1 METHODS
20  
21 =head2 as_hash
22  
23 =head2 pack
24  
25 Synonyms, which return a flattened (to a hash) object.
26  
27 =head1 AUTHOR, COPYRIGHT AND LICENSE
28  
29 See L<Message::Passing>.
30  
31 =cut
32  
« Passing/Output/Test.pm ↑ Summary Passing/Exception/ConnectionDisconnected.pm »