WWW::BookBot::Test - Test utilities for inherited bot of WWW::BookBot.


WWW-BookBot documentation  | view source Contained in the WWW-BookBot distribution.

Index


NAME

Top

WWW::BookBot::Test - Test utilities for inherited bot of WWW::BookBot.

SYNOPSIS

Top

  use Test::More tests => 37;
  BEGIN { use_ok('WWW::BookBot::Test'); use_ok(test_init('WWW::BookBot')); };
  test_begin();
  ...
  test_end();

ABSTRACT

Top

  Test utilities for inherited classes of WWW::BookBot.

DESCRIPTION

Top

WWW::BookBot::Test provides basic test routines for inherited classes of WWW::BookBot.

Basic test environment

  test_init($classname) will set internal test classname and return $classname.
  test_begin() will initialize test environment.
  test_end() will close test environment.

Test utilities

  new_bot({...}) new_bots a new $bot using given classname and arguments.
  read_file($filename) returns all contents of $filename.
  dump_class() dumps out first level of class.
  dump_var($var_name) dumps out all about $var_name of class.
  test_pattern($pattern_name, $content) tests given pattern with $content.

EXPORT

  all functions are exported.

BUGS, REQUESTS, COMMENTS

Top

Please report any requests, suggestions or bugs via http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-BookBot

AUTHOR

Top

Qing-Jie Zhou <qjzhou@hotmail.com>

SEE ALSO

Top

WWW::BookBot


WWW-BookBot documentation  | view source Contained in the WWW-BookBot distribution.