Throwable/Role/BoringText.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 92.3% 12 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
text_body
1.0
BEGIN
1.0
CRAP 1.0
« Throwable/Role/Status/UseProxy.pm ↑ Summary Throwable/Role/Status/NotModified.pm »
1 package HTTP::Throwable::Role::BoringText 0.028;
2 5 our $AUTHORITY = 'cpan:STEVAN';
3  
4 5 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 83 ▶sub text_body { $_[0]->status_line }
Subroutine text_body: called CC=1 SCAR=0.0
Pod undocumented
7  
8 5 ▶no Moo::Role; 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 =pod
11  
12 =encoding UTF-8
13  
14 =head1 NAME
15  
16 HTTP::Throwable::Role::BoringText - provide the simplest text_body method possible
17  
18 =head1 VERSION
19  
20 version 0.028
21  
22 =head1 OVERVIEW
23  
24 This role is as simple as can be. It provides a single method, C<text_body>,
25 which returns the result of calling the C<status_line> method.
26  
27 This method exists so that exception classes can easily be compatible with the
28 L<HTTP::Throwable::Role::TextBody> role to provide a plain text body when
29 converted to an HTTP message. Most of the core well-known exception types
30 consume this method.
31  
32 =head1 PERL VERSION
33  
34 This library should run on perls released even a long time ago. It should work
35 on any version of perl released in the last five years.
36  
37 Although it may work on older versions of perl, no guarantee is made that the
38 minimum required version will not be increased. The version may be increased
39 for any reason, and there is no promise that patches will be accepted to lower
40 the minimum required perl.
41  
42 =head1 AUTHORS
43  
44 =over 4
45  
46 =item *
47  
48 Stevan Little <stevan.little@iinteractive.com>
49  
50 =item *
51  
52 Ricardo Signes <cpan@semiotic.systems>
53  
54 =back
55  
56 =head1 COPYRIGHT AND LICENSE
57  
58 This software is copyright (c) 2011 by Infinity Interactive, Inc.
59  
60 This is free software; you can redistribute it and/or modify it under
61 the same terms as the Perl 5 programming language system itself.
62  
63 =cut
64  
65 __END__
« Throwable/Role/Status/UseProxy.pm ↑ Summary Throwable/Role/Status/NotModified.pm »