my (undef, $file, $line) = caller;
ok
1, "StoreData called from $file, line $line";
ok
ref $store eq 'HASH', "Store Data is a hash reference";
ok
tied %$hashref, "Storing to tied hash";
while (my ($k, $v) = each %$store) {
no warnings
'uninitialized';
my %expected = %$expected;
my (undef, $file, $line) = caller;
ok
1, "VerifyData called from $file, line $line";
ok
ref $expected eq 'HASH', "Expected data is a hash reference";
ok
tied %$hashref, "Verifying a tied hash";
while (my ($k, $v) = each %$hashref) {
no warnings
'uninitialized';
if ($expected{$k} eq $v) {
#diag "No Match [$k][$v]";
if( ! ok
(keys(%bad) + keys(%expected) == 0, "Expected == Actual") ) {
my $bad = "Expected does not match actual\n";
$bad .=" No Match from Expected:\n" ;
while (my ($k, $v) = each %expected) {
$bad .= "\t'$k' =>\t'$v'\n";
$bad .= "\n No Match from Actual:\n" ;
while (my ($k, $v) = each %bad) {
no warnings
'uninitialized';
$bad .= "\t'$k' =>\t'$v'\n";