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;
42
42
use Getopt::Long;
43
43
use lib " $FindBin::RealBin " ;
44
44
use 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;
46
50
47
51
my $obj = criteria-> new($0 , @ARGV );
48
52
@@ -54,7 +58,7 @@ if (!defined($obj) ||
54
58
return undef ;
55
59
}
56
60
my $json = pop (@ARGV );
57
- my $db = decode_json ($json );
61
+ my $db = JsonSupport::decode ($json );
58
62
59
63
my ($status , $msgs ) = $obj -> check_criteria(@ARGV , $db );
60
64
foreach my $m (@$msgs ) {
Original file line number Diff line number Diff line change 39
39
package criteria ;
40
40
41
41
use strict;
42
- use JSON;
43
42
use Getopt::Long qw( GetOptionsFromArray) ;
44
43
45
44
our @ISA = qw( Exporter) ;
Original file line number Diff line number Diff line change 48
48
package threshold ;
49
49
50
50
use strict;
51
- use JSON;
52
51
use Getopt::Long qw( GetOptionsFromArray) ;
53
52
use Scalar::Util qw/ looks_like_number/ ;
54
53
You can’t perform that action at this time.
0 commit comments