File Coverage

blib/lib/Perinci/Sub/Util/ResObj.pm
Criterion Covered Total %
statement 9 11 81.8
branch n/a
condition n/a
subroutine 3 4 75.0
pod n/a
total 12 15 80.0


line stmt bran cond sub pod time code
1             package Perinci::Sub::Util::ResObj;
2              
3 1     1   416121 use strict;
  1         2  
  1         72  
4 1     1   7 use Carp;
  1         2  
  1         172  
5              
6             use overload
7             q("") => sub {
8 0     0     my $res = shift; "ERROR $res->[0]: $res->[1]\n" . Carp::longmess();
  0            
9 1     1   8 };
  1         2  
  1         19  
10              
11             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
12             our $DATE = '2023-10-28'; # DATE
13             our $DIST = 'Perinci-Sub-Util'; # DIST
14             our $VERSION = '0.472'; # VERSION
15              
16             1;
17             # ABSTRACT: An object that represents enveloped response suitable for die()-ing
18              
19             __END__
20              
21             =pod
22              
23             =encoding UTF-8
24              
25             =head1 NAME
26              
27             Perinci::Sub::Util::ResObj - An object that represents enveloped response suitable for die()-ing
28              
29             =head1 VERSION
30              
31             This document describes version 0.472 of Perinci::Sub::Util::ResObj (from Perl distribution Perinci-Sub-Util), released on 2023-10-28.
32              
33             =head1 SYNOPSIS
34              
35             Currently unused. See L<Perinci::Sub::Util>'s C<warn_err> and C<die_err>
36             instead.
37              
38             =head1 HOMEPAGE
39              
40             Please visit the project's homepage at L<https://metacpan.org/release/Perinci-Sub-Util>.
41              
42             =head1 SOURCE
43              
44             Source repository is at L<https://github.com/perlancar/perl-Perinci-Sub-Util>.
45              
46             =head1 AUTHOR
47              
48             perlancar <perlancar@cpan.org>
49              
50             =head1 CONTRIBUTING
51              
52              
53             To contribute, you can send patches by email/via RT, or send pull requests on
54             GitHub.
55              
56             Most of the time, you don't need to build the distribution yourself. You can
57             simply modify the code, then test via:
58              
59             % prove -l
60              
61             If you want to build the distribution (e.g. to try to install it locally on your
62             system), you can install L<Dist::Zilla>,
63             L<Dist::Zilla::PluginBundle::Author::PERLANCAR>,
64             L<Pod::Weaver::PluginBundle::Author::PERLANCAR>, and sometimes one or two other
65             Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps required beyond
66             that are considered a bug and can be reported to me.
67              
68             =head1 COPYRIGHT AND LICENSE
69              
70             This software is copyright (c) 2023, 2020, 2017, 2016, 2015, 2014 by perlancar <perlancar@cpan.org>.
71              
72             This is free software; you can redistribute it and/or modify it under
73             the same terms as the Perl 5 programming language system itself.
74              
75             =head1 BUGS
76              
77             Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Sub-Util>
78              
79             When submitting a bug or request, please include a test-file or a
80             patch to an existing test-file that illustrates the bug or desired
81             feature.
82              
83             =cut