Hook::Modular::Test - utility functions for testing Hook::Modular


Hook-Modular documentation  | view source Contained in the Hook-Modular distribution.

Index


NAME

Top

Hook::Modular::Test - utility functions for testing Hook::Modular

VERSION

Top

version 1.101050

SYNOPSIS

Top

  # t/45blah.t

  use Hook::Modular::Test ':all';

  my $config_filename = write_config_file(do { local $/; <DATA> });

  sub run {
      # ...
  }

  __DATA__
  global:
    log:
      level: error
  ...

DESCRIPTION

Top

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.

FUNCTIONS

Top

write_config_file

  my $temp_file_name = write_config_file($yaml_string);

Takes the YAML, loads it (partly to make sure it is valid), dumps it out to a temporary file and returns the file name.

INSTALLATION

Top

See perlmodinstall for information and options on installing Perl modules.

BUGS AND LIMITATIONS

Top

No bugs have been reported.

Please report any bugs or feature requests through the web interface at http://rt.cpan.org/Public/Dist/Display.html?Name=Hook-Modular.

AVAILABILITY

Top

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see http://search.cpan.org/dist/Hook-Modular/.

The development version lives at http://github.com/hanekomu/Hook-Modular/. Instead of sending patches, please fork this project using the standard git and github infrastructure.

AUTHORS

Top

  Marcel Gruenauer <marcel@cpan.org>
  Tatsuhiko Miyagawa <miyagawa@bulknews.net>

COPYRIGHT AND LICENSE

Top


Hook-Modular documentation  | view source Contained in the Hook-Modular distribution.