line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tapper::Reports::Web::View::JSON; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TAPPER'; |
3
|
|
|
|
|
|
|
$Tapper::Reports::Web::View::JSON::VERSION = '5.0.14'; |
4
|
10
|
|
|
10
|
|
6261
|
use strict; |
|
10
|
|
|
|
|
34
|
|
|
10
|
|
|
|
|
422
|
|
5
|
10
|
|
|
10
|
|
73
|
use warnings; |
|
10
|
|
|
|
|
31
|
|
|
10
|
|
|
|
|
382
|
|
6
|
|
|
|
|
|
|
|
7
|
10
|
|
|
10
|
|
82
|
use base qw/Catalyst::View/; |
|
10
|
|
|
|
|
23
|
|
|
10
|
|
|
|
|
4954
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub process { |
10
|
|
|
|
|
|
|
|
11
|
0
|
|
|
0
|
1
|
|
my ( $or_self, $or_c ) = @_; |
12
|
|
|
|
|
|
|
|
13
|
0
|
|
|
|
|
|
$or_c->response->content_type('text/plain'); |
14
|
|
|
|
|
|
|
|
15
|
0
|
0
|
|
|
|
|
if ( $or_c->stash->{content} ) { |
16
|
|
|
|
|
|
|
$or_c->response->body( |
17
|
|
|
|
|
|
|
JSON::XS::encode_json( $or_c->stash->{content} ) |
18
|
0
|
|
|
|
|
|
); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
else { |
21
|
0
|
|
|
|
|
|
$or_c->response->body(''); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
return 1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=pod |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=encoding UTF-8 |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 NAME |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Tapper::Reports::Web::View::JSON |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 AUTHORS |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=over 4 |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=item * |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=item * |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Tapper Team <tapper-ops@amazon.com> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=back |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
This software is Copyright (c) 2019 by Advanced Micro Devices, Inc.. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
This is free software, licensed under: |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=cut |