in reply to What the heck does "tests->{$stype} ||= {};" do?

 $tests->{$stype} ||= {}; is short for  $tests->{$stype} = $tests->{$stype} || {}; which says that if  $tests->{$stype} is true keep the same value but if it is false then assign the value  {} to it.