04_critic.t

来自「Verilog Parser in Perl」· T 代码 · 共 29 行

T
29
字号
#!/usr/bin/perl -w# DESCRIPTION: Perl ExtUtils: Type 'make test' to test this package## Copyright 2000-2009 by Wilson Snyder.  This program is free software;# you can redistribute it and/or modify it under the terms of either the GNU# Lesser General Public License or the Perl Artistic License.use strict;use Test;use warnings;if (!$ENV{VERILATOR_AUTHOR_SITE}) {    plan tests => 1;    skip("author only test (harmless)",1);} else {    eval "use Test::Perl::Critic;";    if ($@) {	plan tests => 1;	skip("Test::Perl::Critic not installed so ignoring check (harmless)",1);    } else {	#-profile => "t/04_critic.rc"	Test::Perl::Critic->import( -verbose=>9,				    -exclude=>['ProhibitExplicitReturnUndef',					       'ProhibitStringyEval'],	    );	all_critic_ok();    }}

⌨️ 快捷键说明

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