lib/Rapi/Blog/DB/Result/PreauthActionType.pm untested

filter: Statementstmt 0.0% 0 / 43 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 11 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 55 CC 1 SCAR 6.9
CC
1
Cov
0%
actor_class
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use utf8;
2 package Rapi::Blog::DB::Result::PreauthActionType;
3  
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6  
7 use strict;
8 use warnings;
9  
10 use Moose;
11 use MooseX::NonMoose;
12 use MooseX::MarkAsMethods autoclean => 1;
13 extends 'DBIx::Class::Core';
14 __PACKAGE__->load_components("InflateColumn::DateTime");
15 __PACKAGE__->table("preauth_action_type");
16 __PACKAGE__->add_columns(
17 "name",
18 { data_type => "varchar", is_nullable => 0, size => 16 },
19 "description",
20 {
21 data_type => "varchar",
22 default_value => \"null",
23 is_nullable => 1,
24 size => 1024,
25 },
26 );
27 __PACKAGE__->set_primary_key("name");
28 __PACKAGE__->has_many(
29 "preauth_actions",
30 "Rapi::Blog::DB::Result::PreauthAction",
31 { "foreign.type" => "self.name" },
32 { cascade_copy => 0, cascade_delete => 0 },
33 );
34  
35  
36 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2018-10-27 23:38:05
37 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:P8LCFp0JKZ2TEWFTn9Wl9g
38  
39 use RapidApp::Util ':all';
40 use Rapi::Blog::Util;
41  
42 use String::CamelCase qw/camelize/;
43 use Module::Runtime;
44  
45 our $ACTOR_CLASS_NAMESPACE = 'Rapi::Blog::PreAuth::Actor';
46  
47 sub actor_class {
48 my $self = shift;
49
50 my $class = join('::',$ACTOR_CLASS_NAMESPACE,camelize($self->name));
51 Module::Runtime::require_module($class);
52  
53 $class
54 }
55  
56  
57  
58  
59 # You can replace this text with custom code or comments, and it will be preserved on regeneration
60 __PACKAGE__->meta->make_immutable;
61 1;