diff options
author | Karel Miko <karel.miko@gmail.com> | 2021-07-13 22:50:37 +0200 |
---|---|---|
committer | Karel Miko <karel.miko@gmail.com> | 2021-07-13 22:50:37 +0200 |
commit | 10f78b6de4107863e337063ee1eebb9df7d61f02 (patch) | |
tree | 70e6653cb6381fbf0b350c726ebc43b4b1635b20 /t | |
parent | fba296be646c044a7ac716e9e6fabb8d47488612 (diff) |
fix tests: skip_all if JSON not installed
Diffstat (limited to 't')
-rw-r--r-- | t/pk_x25519.t | 6 |
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); |