]> git.vpit.fr Git - perl/modules/autovivification.git/blobdiff - t/lib/autovivification/TestCases.pm
Document and test vivification of function arguments
[perl/modules/autovivification.git] / t / lib / autovivification / TestCases.pm
index 13feb5a6c784561786d99cb7911aa64be366f27b..82b9b68c085f183bd9f3db211a5be65fabe54891 100644 (file)
@@ -12,6 +12,10 @@ sub import {
 
 sub in_strict { (caller 0)[8] & (eval { strict::bits(@_) } || 0) };
 
+sub do_nothing { }
+
+sub set_arg { $_[0] = 1 }
+
 sub generate {
  my ($var, $init, $code, $exp, $use, $opts, $global) = @_;
  my $decl = $global ? "our $var; local $var;" : "my $var;";