Schema/Populate/Role.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Schema/Populate/MessageType.pm ↑ Summary Schema/Result/Cart.pm »
1 package Interchange6::Schema::Populate::Role;
2  
3 =head1 NAME
4  
5 Interchange6::Schema::Populate::Role
6  
7 =head1 DESCRIPTION
8  
9 This module provides population capabilities for the Role result class
10  
11 =cut
12  
13 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 =head1 METHODS
19  
20 =head2 records
21  
22 Returns array reference containing one hash reference per role ready to use with populate schema method. Initial roles are:
23  
24 =over
25  
26 =item * admin
27  
28 Shop administrator with full permissions.
29  
30 =item * user
31  
32 All non-anonymous users have this role.
33  
34 =item * anonymous
35  
36 Anonymous users.
37  
38 =back
39  
40 =cut
41  
42 sub records {
43 return [
44 {
45 4 ▶ name => "admin",
Subroutine records: called CC=1 SCAR=0.0
Pod documented
46 label => "Admin",
47 description => "Shop administrator with full permissions",
48 },
49 {
50 name => "user",
51 label => "User",
52 description => "All users have this role",
53 },
54 {
55 name => "anonymous",
56 label => "Anonymous",
57 description => "Anonymous users",
58 }
59 ];
60 }
61  
62 2 1;
« Schema/Populate/MessageType.pm ↑ Summary Schema/Result/Cart.pm »