Fey/Role/IsLiteral.pm

filter: Statementstmt 93.7% 15 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 86.3% 19 / 22 SCAR 0.0
CC
1
Cov
94%
id
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Fey/SQL/Delete.pm ↑ Summary Fey/SQL/Fragment/Where/SubgroupEnd.pm »
1 package Fey::Role::IsLiteral;
2  
3 27 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 27 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 27 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 27 our $VERSION = '0.43';
8  
9 27 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 27 requires 'sql';
12  
13 sub id {
14 0 ▶ return $_[0]->sql('Fey::FakeDBI');
Subroutine id: not called CC=1 SCAR=6.9
Pod undocumented
15 }
16  
17 27 1;
18  
19 # ABSTRACT: A role for things that are literals
20  
21 __END__
22  
23 =pod
24  
25 =head1 NAME
26  
27 Fey::Role::IsLiteral - A role for things that are literals
28  
29 =head1 VERSION
30  
31 version 0.43
32  
33 =head1 SYNOPSIS
34  
35 use Moose 2.1200;
36  
37 with 'Fey::Role::IsLiteral';
38  
39 =head1 DESCRIPTION
40  
41 This role provides an C<id()> method that simply calls C<<
42 $object->sql('Fey::FakeDBI') >>.
43  
44 =head1 BUGS
45  
46 See L<Fey> for details on how to report bugs.
47  
48 =head1 AUTHOR
49  
50 Dave Rolsky <autarch@urth.org>
51  
52 =head1 COPYRIGHT AND LICENSE
53  
54 This software is Copyright (c) 2011 - 2015 by Dave Rolsky.
55  
56 This is free software, licensed under:
57  
58 The Artistic License 2.0 (GPL Compatible)
59  
60 =cut
« Fey/SQL/Delete.pm ↑ Summary Fey/SQL/Fragment/Where/SubgroupEnd.pm »