Test::MockFile::Plugin(3pm)

Test::MockFile::Plugin3pm

Plugin base class

Usage

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

Overview

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

Methods

new( %opts )

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

register

  $plugin->register();

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

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

From libtest-mockfile-perl 0.037-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.