Schema/Populate/MessageType.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod 100% 1 / 1 totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
populate_message_types
1.0
CRAP 1.0
« Schema/Populate.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::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 =head1 METHODS
16  
17 =head2 populate_message_types
18  
19 =cut
20  
21 sub populate_message_types {
22 3 ▶ my $self = shift;
Subroutine populate_message_types: called CC=1 SCAR=0.0
Pod documented
23  
24 3 my @types = qw( blog_post order_comment product_review wiki_node );
25  
26 3 my $rset = $self->schema->resultset('MessageType');
27  
28 3 map { $rset->create({ name => $_ }) } @types;
29 }
30  
31 4 1;
« Schema/Populate.pm ↑ Summary Schema/Populate/Role.pm »