summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorKarel Miko <karel.miko@gmail.com>2021-07-13 22:50:37 +0200
committerKarel Miko <karel.miko@gmail.com>2021-07-13 22:50:37 +0200
commit10f78b6de4107863e337063ee1eebb9df7d61f02 (patch)
tree70e6653cb6381fbf0b350c726ebc43b4b1635b20 /t
parentfba296be646c044a7ac716e9e6fabb8d47488612 (diff)
fix tests: skip_all if JSON not installed
Diffstat (limited to 't')
-rw-r--r--t/pk_x25519.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/pk_x25519.t b/t/pk_x25519.t
index fd762b14..24e0d55b 100644
--- a/t/pk_x25519.t
+++ b/t/pk_x25519.t
@@ -1,6 +1,10 @@
use strict;
use warnings;
-use Test::More tests => 69;
+
+use Test::More;
+
+plan skip_all => "JSON module not installed" unless eval { require JSON };
+plan tests => 69;
use Crypt::PK::X25519;
use Crypt::Misc qw(read_rawfile);