DESCRIPTION

Module to help mock the namespace

USAGE

E.g. to fake NCM:: namespace provided by the 'ncm' namespace

BEGIN {
    use Test::Quattor::Namespace qw(ncm);
}

...
use NCM::Component
...

Variables

  • inc_orig

    $inc_orig holds arrayref to a copy of @INC when INC_insert_namespace was first called.

  • inc_history

    $inc_history is an arrayref with copy of all references of all @INCs modified

  • ignore

    Hashref with namespaces to ignore (if value is true) when INC_insert_namespace is used.

Functions

  • INC_insert_namespace

    Setup @INC so NCM::Component is provided by Test::Quattor Returns modified @INC as reference.