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_origholds arrayref to a copy of@INCwhenINC_insert_namespacewas first called. -
inc_history
$inc_historyis an arrayref with copy of all references of all@INCs modified -
ignore
Hashref with namespaces to ignore (if value is true) when
INC_insert_namespaceis used.
Functions
-
INC_insert_namespace
Setup @INC so NCM::Component is provided by Test::Quattor Returns modified @INC as reference.