Bernard Simon > App-Followme-1.02 > App::Followme::Mock

Download:
App-Followme-1.02.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.02   Source  

NAME ^

App::Followme::Mock - Mock object for unit tests

SYNOPSIS ^

    use App::Followme::Mock;
    my $mock = App::Followme::Mock->new();
    my @list = $mock->run($directory);

DESCRIPTION ^

This is a minimal objects intended for unit tests and not for production use. It also serves as an example of how to create a module, although modules will probably be a subclass of App:Followme::HandleSite instead of EveryFile. It returns a sorted list of relative filenames with the specified extension when run. If subdir is set to true, it will return all filenames in the subdirectories.

LICENSE ^

Copyright (C) Bernie Simon.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR ^

Bernie Simon <bernie.simon@gmail.com>

syntax highlighting: