Module::Faker - build fake dists for testing CPAN tools
version 0.016
Module::Faker->make_fakes({ source => './dir-of-specs', dest => './will-contain-tarballs', });
Module::Faker is a tool for building fake CPAN modules and, perhaps more importantly, fake CPAN distributions. These are useful for running tools that operate against CPAN distributions without having to use real CPAN distributions. This is much more useful when testing an entire CPAN instance, rather than a single distribution, for which see CPAN::Faker.
Module::Faker->make_fakes(\%arg);
This method creates a new Module::Faker and builds archives in its destination directory for every dist-describing file in its source directory. See the "new" method below.
my $faker = Module::Faker->new(\%arg);
This create the new Module::Faker. All arguments may be accessed later by methods of the same name. Valid arguments are:
source - the directory in which to find source files dest - the directory in which to construct dist archives dist_class - the class used to fake dists; default: Module::Faker::Dist
Ricardo Signes <rjbs@cpan.org>
This software is copyright (c) 2008 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Module::Faker, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Faker
CPAN shell
perl -MCPAN -e shell install Module::Faker
For more information on module installation, please visit the detailed CPAN module installation guide.