File Coverage

blib/lib/Interchange6/Schema/Populate/MessageType.pm
Criterion Covered Total %
statement 3 6 50.0
branch n/a
condition n/a
subroutine 1 2 50.0
pod 1 1 100.0
total 5 9 55.5


line stmt bran cond sub pod time code
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 3     3   13 use Moo;
  3         5  
  3         24  
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 0     0 1   my @types = qw( blog_post order_comment product_review );
26              
27 0           return [ map { { name => $_ } } @types ];
  0            
28             }
29              
30             1;