File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,11 @@ use FindBin;
4242use Getopt::Long;
4343use lib " $FindBin::RealBin " ;
4444use criteria qw( new) ;
45- use JSON;
45+
46+ use lib " $FindBin::RealBin /../lib" ;
47+ use lib " $FindBin::RealBin /../../../lib" ; # path from 'support-scripts'
48+
49+ use lcovutil;
4650
4751my $obj = criteria-> new($0 , @ARGV );
4852
@@ -54,7 +58,7 @@ if (!defined($obj) ||
5458 return undef ;
5559}
5660my $json = pop (@ARGV );
57- my $db = decode_json ($json );
61+ my $db = JsonSupport::decode ($json );
5862
5963my ($status , $msgs ) = $obj -> check_criteria(@ARGV , $db );
6064foreach my $m (@$msgs ) {
Original file line number Diff line number Diff line change 3939package criteria ;
4040
4141use strict;
42- use JSON;
4342use Getopt::Long qw( GetOptionsFromArray) ;
4443
4544our @ISA = qw( Exporter) ;
Original file line number Diff line number Diff line change 4848package threshold ;
4949
5050use strict;
51- use JSON;
5251use Getopt::Long qw( GetOptionsFromArray) ;
5352use Scalar::Util qw/ looks_like_number/ ;
5453
You can’t perform that action at this time.
0 commit comments