⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 00signature.t

📁 SinFP是一种新的识别对方计算机操作系统类型的工具
💻 T
字号:
#!/usr/bin/perluse strict;use Test::More;if (!eval { require Module::Signature; 1 }) {    plan skip_all =>       "Next time around, consider installing Module::Signature, ".      "so you can verify the integrity of this distribution.";}elsif ( !-e 'SIGNATURE' ) {    plan skip_all => "SIGNATURE not found";}elsif ( -s 'SIGNATURE' == 0 ) {    plan skip_all => "SIGNATURE file empty";}elsif (!eval { require Socket; Socket::inet_aton('pgp.mit.edu') }) {    plan skip_all => "Cannot connect to the keyserver to check module ".                     "signature";}else {    plan tests => 1;}my $ret = Module::Signature::verify();SKIP: {    skip "Module::Signature cannot verify", 1       if $ret eq Module::Signature::CANNOT_VERIFY()   or         $ret eq Module::Signature::CIPHER_UNKNOWN();    cmp_ok $ret, '==', Module::Signature::SIGNATURE_OK(), "Valid signature";}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -