Hook::Modular::Test - utility functions for testing Hook::Modular
# t/45blah.t use Hook::Modular::Test ':all'; my $config_filename = write_config_file(do { local $/; <DATA> }); sub run { ... } __DATA__ global: log: level: error ...
This module exports utility functions to aid in testing Hook::Modular. None of the functions are exported automatically, but you can request them by name, or get all of them if you use the :all tag.
:all
Takes the yaml, loads it (partly to make sure it is valid), dumps it out to a temporary file and returns the file name.
Marcel Grünauer, <marcel@cpan.org>
<marcel@cpan.org>
Copyright 2007 by Marcel Grünauer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Hook::Modular, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hook::Modular
CPAN shell
perl -MCPAN -e shell install Hook::Modular
For more information on module installation, please visit the detailed CPAN module installation guide.