blib/lib/HPC/Runner/Command/stats/Logger/JSON/JSONOutput.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package HPC::Runner::Command::stats::Logger::JSON::JSONOutput;
2  
3 use Moose::Role;
4 use namespace::autoclean;
5 use JSON;
6  
7 has 'json_data' => (
8 is => 'rw',
9 isa => 'ArrayRef',
10 default => sub { return [] }
11 );
12  
13 after 'iter_submissions' => sub {
14 my $self = shift;
15 my $json = encode_json( $self->json_data );
16 print $json;
17 print "\n";
18 };
19  
20 1;