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.15'; |
4
|
11
|
|
|
11
|
|
6376
|
use strict; |
|
11
|
|
|
|
|
26
|
|
|
11
|
|
|
|
|
361
|
|
5
|
11
|
|
|
11
|
|
63
|
use warnings; |
|
11
|
|
|
|
|
35
|
|
|
11
|
|
|
|
|
398
|
|
6
|
|
|
|
|
|
|
|
7
|
11
|
|
|
11
|
|
67
|
use base qw/Catalyst::View/; |
|
11
|
|
|
|
|
25
|
|
|
11
|
|
|
|
|
4701
|
|
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) 2020 by Advanced Micro Devices, Inc.. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
This is free software, licensed under: |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=cut |