comparison lib/Test/Nginx.pm @ 1896:8b74936ff2ac

Tests: added has_feature() test for CryptX.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 29 May 2023 17:04:36 +0400
parents 0e1865aa9b33
children 07656d303199
comparison
equal deleted inserted replaced
1895:acd68670b064 1896:8b74936ff2ac
286 } 286 }
287 287
288 return 1; 288 return 1;
289 } 289 }
290 290
291 if ($feature eq 'cryptx') {
292 eval { require Crypt::Misc; };
293 return 0 if $@;
294 eval { die if $Crypt::Misc::VERSION < 0.067; };
295 return !$@;
296 }
297
291 return 0; 298 return 0;
292 } 299 }
293 300
294 sub has_version($) { 301 sub has_version($) {
295 my ($self, $need) = @_; 302 my ($self, $need) = @_;