Test/PONAPI/Repository/MockDB/Table/People.pm

filter: Statementstmt 94.4% 17 / 18 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 92.0% 23 / 25 CC 2 SCAR 3.5
CC
2
Cov
90%
BUILDARGS
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« Test/PONAPI/Repository/MockDB/Table/Comments.pm ↑ Summary PONAPI/DAO/Request/Role/HasFilter.pm »
1 # ABSTRACT: mock repository - table - People
2 package Test::PONAPI::Repository::MockDB::Table::People;
3  
4 8 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 8 extends 'Test::PONAPI::Repository::MockDB::Table';
7 8 ▶use Test::PONAPI::Repository::MockDB::Table::Relationships;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 sub BUILDARGS {
10 9 ▶ my $class = shift;
Subroutine BUILDARGS: called CC=2 SCAR=7.2
Pod documented
11 9 ▶ my %args = @_ == 1 ? %{ $_[0] } : @_;
Branch: 1 branch
BranchTrueFalseTotal
@_ == 1 ? : 0 9 9
12  
13 9 my $to_articles =
14 Test::PONAPI::Repository::MockDB::Table::Relationships->new(
15 TYPE => 'articles',
16 TABLE => 'rel_articles_people',
17 ID_COLUMN => 'id_people',
18 REL_ID_COLUMN => 'id_articles',
19 COLUMNS => [qw/ id_articles id_people /],
20 ONE_TO_ONE => 0,
21 );
22  
23 9 %args = (
24 TYPE => 'people',
25 TABLE => 'people',
26 ID_COLUMN => 'id',
27 COLUMNS => [qw/ id name age gender /],
28 RELATIONS => { articles => $to_articles, },
29 %args,
30 );
31  
32 9 return \%args;
33 }
34  
35 8 __PACKAGE__->meta->make_immutable;
36 8 ▶no Moose; 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
37  
38 __END__
39  
40 =pod
41  
42 =encoding UTF-8
43  
44 =head1 NAME
45  
46 Test::PONAPI::Repository::MockDB::Table::People - mock repository - table - People
47  
48 =head1 VERSION
49  
50 version 0.002012
51  
52 =head1 AUTHORS
53  
54 =over 4
55  
56 =item *
57  
58 Mickey Nasriachi <mickey@cpan.org>
59  
60 =item *
61  
62 Stevan Little <stevan@cpan.org>
63  
64 =item *
65  
66 Brian Fraser <hugmeir@cpan.org>
67  
68 =back
69  
70 =head1 COPYRIGHT AND LICENSE
71  
72 This software is copyright (c) 2016 by Mickey Nasriachi, Stevan Little, Brian Fraser.
73  
74 This is free software; you can redistribute it and/or modify it under
75 the same terms as the Perl 5 programming language system itself.
76  
77 =cut
« Test/PONAPI/Repository/MockDB/Table/Comments.pm ↑ Summary PONAPI/DAO/Request/Role/HasFilter.pm »