MyCPAN::Indexer::NullTester - Do nothing components
Use this in backpan_indexer.pl by specifying it as the class you want to do nothing:
# in backpan_indexer.config worker_class MyCPAN::Indexer::NullTester
This class implements all of the methods needed by all of the component classes. Thes methods don't do anything, so they can be useful to ignore parts of the system while you focus on developing another. For instance, you might use this module as the reporter_class, since it does nothing, which you work on the dispatcher_class.
get_queue adds a
queue key to HASH_REF. The value of
queue is an empty
get_task adds a
child_task key to HASH_REF. The value of
child_task is a code reference that returns 1 and does nothing else.
get_storer adds a
reporter key to HASH_REF. The value of
reporter is a code reference that returns 1 and does nothing else.
get_dispatcher adds a dispatcher key to HASH_REF. The value is an object that responds to the start and finish methods, but does nothing.
get_dispatcher also sets the
interface_callback key to a code reference that returns 1 and does nothing else.
do_interface simly returns 1.
This code is in Github:
brian d foy,
Copyright (c) 2008-2010, brian d foy, All Rights Reserved.
You may redistribute this under the same terms as Perl itself.