Test-Helper

 view release on metacpan or  search on metacpan

TAGS  view on Meta::CPAN


lib/Test/Helper.pm,174
sub test(&) {test13,321
sub ok($;) {ok22,500
sub comm(@) {comm29,615
sub runs(&) {runs34,690
sub heinous(&) {heinous40,760
sub syntax_check() {syntax_check46,900

lib/Test/Helper.pm  view on Meta::CPAN


sub test(&) {
  local($count)=0;
  local($output)='';
  eval {&{+shift}};
  $count++ if $@;		# Simulate something wrong.
  print "1..$count\n$output";
  die $@ if $@;
}

sub ok($;) {
  my $isok=shift;
  $output .= 'not ' unless $isok;
  $count++;
  $output .= "ok $count\n";
}

sub comm(@) {
  my $comm=join '', @_;
  $output .= "# $comm...\n";
}



( run in 0.984 second using v1.01-cache-2.11-cpan-524268b4103 )