Permalink
Browse files

Add DEVEL_COVER_DB_FORMAT environment variable.

Set to either Storable or JSON to control the DB format.
  • Loading branch information...
1 parent 354a23e commit d8014183a9fae125f3a9f85db84cb1ebf6c43e9c @pjcj committed Apr 18, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Devel/Cover/DB/IO.pm
@@ -16,7 +16,8 @@ my $Format;
BEGIN
{
- $Format = eval { require JSON::PP; 1 } ? "JSON" : "Storable";
+ $Format = $ENV{DEVEL_COVER_DB_FORMAT} ||
+ (eval { require JSON::PP; 1 } ? "JSON" : "Storable");
}
sub new

0 comments on commit d801418

Please sign in to comment.