Test::Mock::Signature::Dispatcher - method dispatcher class.
You can add one more metadata to you dispatcher:
my $dispatcher = $mock->dispatcher('my_method_name'); $dispatcher->add($meta);
Or delete some meta:
$dispatcher->delete($meta);
Also you can compile your dispatcher meta information:
$dispatcher->compile;
Provides a dispatching mechanism for main mock module Test::Mock::Signature.
Takes $method_name fully qualifed method name e.g.: Real::Module::method. Returns instance of the Test::Mock::Signature::Dispatcher class.
$method_name
Takes object of the Test::Mock::Signature::Meta class and put it into dispatching list.
Takes object of the Test::Mock::Signature::Meta class and remove it from dispatching list.
Mocks the method in real class and put dispatching mechanism - on.
Removes mocked method and put back default behavior.
cono <cono@cpan.org>
Copyright 2014 - cono
Artistic v2.0
Test::Mock::Signature
To install Test::Mock::Signature, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Mock::Signature
CPAN shell
perl -MCPAN -e shell install Test::Mock::Signature
For more information on module installation, please visit the detailed CPAN module installation guide.