st->new(POST => 'https://localhost/cgi-bin/info.pl');
$req->header('content-type' => 'application/json');
$req->content('{ "first": "Nigel", "last": "Horne" }');
my $resp = $ua->request($req);
if($re
utodie qw(:all);
use JSON::MaybeXS;
use File::Glob ':glob';
use File::Slurp;
use File::stat;
use POSIX qw(strftime);
use Readonly;
Readonly my $cover_db => 'cover_db/cover.json';
Readonly my $output
its in the coverage trend graph
# Read and decode coverage data
my $json_text = read_file($cover_db);
my $data = decode_json($json_text);
my $coverage_pct = 0;
my $badge_color = 'red';
if(my $total
} bsd_glob("coverage_history/*.json");
my $prev_data;
if (@history >= 1) {
my $prev_file = $history[-1]; # Most recent before current
eval {
$prev_data = decode_json(read_file($prev_file));
};
}
t;
use Scalar::Util;
use Socket; # For AF_INET
use 5.008;
use Log::Any qw($log);
# use Cwd;
# use JSON::Parse;
use List::Util (); # Can go when expect goes
# use Sub::Private;
use Sys::Path;
use name
content_type =~ /application\/json/i) {
require JSON::MaybeXS && JSON::MaybeXS->import() unless JSON::MaybeXS->can('parse_json');
# require JSON::MaybeXS;
# JSON::MaybeXS->import();
my $b
$stdin_data = $buffer;
}
# JSON::Parse::assert_valid_json($buffer);
# my $paramref = JSON::Parse::parse_json($buffer);
my $paramref = decode_json($buffer);
foreach my $key(keys(%{$