use_ok() inside a BEGIN block, so functions are exported at compile-time and prototypes are properly honored. That is, instead of writing this: use_ok( 'Some::Module' ); use_ok( 'Other::Module' ); One should write this: BEGIN { use_ok( 'Some::Module' ); } BEGIN { use_ok( 'Other::Module' ); } However, people often either forget to add BEGIN, or mistakenly group use_ok with other tests in a single BEGIN block, which can create subtle differences in execution order. With this module, simply change all use_ok in test scripts to use ok, and they will be executed at BEGIN time. The explicit space after use makes it clear that this is a single compile-time action.
5 lines
258 B
Text
5 lines
258 B
Text
$NetBSD: distinfo,v 1.1.1.1 2006/04/07 18:18:01 kuli0020 Exp $
|
|
|
|
SHA1 (Test-use-ok-0.01.tar.gz) = b329a46b493e5f516001b0ff19329a6dd77f0be3
|
|
RMD160 (Test-use-ok-0.01.tar.gz) = eacf699f10ed3ad6562c9862611be41f5e46091e
|
|
Size (Test-use-ok-0.01.tar.gz) = 8862 bytes
|