Test::MockFile::Plugin(3pm) User Contributed Perl Documentation Test::MockFile::Plugin(3pm)

Test::MockFile::Plugin - Plugin base class

  package Test::MockFile::Plugin::YourCustomPlugin;
  use base 'Test::MockFile::Plugin';
  sub register {
    my ( $self ) = @_;
    # Code to setup your plugin here
    ...
  }

Test::MockFile::Plugin is an abstract base class for Test::MockFile plugins.

Constructor provided to all Plugin packages so they have a location to store their internal data.

  $plugin->register();

This method will be called by Test::MockFile::Plugins on imports.

Test::MockFile

2023-08-09 perl v5.36.0