Schema/Populate/MessageType.pm

filter: Statementstmt 100% 7 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod 100% 1 / 1 totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
records
1.0
CRAP 1.0
« Schema/Result/Address.pm ↑ Summary Schema/Populate/Role.pm »
1 package Interchange6::Schema::Populate::MessageType;
2  
3 =head1 NAME
4  
5 Interchange6::Schema::Populate::MessageType
6  
7 =head1 DESCRIPTION
8  
9 This module provides population capabilities for the MessageType schema
10  
11 =cut
12  
13 4 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 =head1 METHODS
16  
17 =head2 records
18  
19 Returns array reference containing one hash reference per message type ready to use with populate schema method.
20  
21 =cut
22  
23 sub records {
24  
25 3 ▶ my @types = qw( blog_post order_comment product_review wiki_node );
Subroutine records: called CC=1 SCAR=0.0
Pod documented
26  
27 3 return [ map { { name => $_ } } @types ];
28 }
29  
30 4 1;
« Schema/Result/Address.pm ↑ Summary Schema/Populate/Role.pm »