in t/modules/setenvif.t [91:114]
sub set_expect {
my $not = shift;
my $conf_str = shift;
my ($v, $exp_str) = ('','');
my %exp =
(
1 => 'VAR_ONE',
2 => 'VAR_TWO',
3 => 'VAR_THREE'
);
foreach (sort keys %exp) {
my $foo = $exp{$_};
$v = '(none)';
if ($conf_str =~ /$foo=(\S+)/) {
$v = $1 unless $not;
}
$exp_str .= "$_:$v\n";
}
return $exp_str;
}