Helper/ResultSet/Shortcut/Distinct.pm

filter: Statementstmt 100% 12 / 12 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 94.7% 18 / 19 CC 2 SCAR 3.8
CC
2
Cov
93%
distinct
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« Helper/Row/StorageValues.pm ↑ Summary Helper/ResultSet/Me.pm »
1 package DBIx::Class::Helper::ResultSet::Shortcut::Distinct;
2 55 $DBIx::Class::Helper::ResultSet::Shortcut::Distinct::VERSION = '2.032002';
3 55 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 55 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 55 ▶use parent 'DBIx::Class::ResultSet';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶sub distinct { $_[0]->search(undef, { distinct => defined $_[1] ? $_[1] : 1 }) }
Subroutine distinct: called CC=2 SCAR=7.6
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
defined $_[1] ? : 0 1 1
9  
10 55 1;
11  
12 __END__
13  
14 =pod
15  
16 =head1 NAME
17  
18 DBIx::Class::Helper::ResultSet::Shortcut::Distinct
19  
20 =head1 AUTHOR
21  
22 Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>
23  
24 =head1 COPYRIGHT AND LICENSE
25  
26 This software is copyright (c) 2016 by Arthur Axel "fREW" Schmidt.
27  
28 This is free software; you can redistribute it and/or modify it under
29 the same terms as the Perl 5 programming language system itself.
30  
31 =cut
« Helper/Row/StorageValues.pm ↑ Summary Helper/ResultSet/Me.pm »