Test::NoXS - Prevent a module from loading its XS code
use Test::NoXS 'Class::Load::XS'; use Module::Implementation; eval "use Class::Load"; is( Module::Implementation::implementation_for("Class::Load"), "PP", "Class::Load using PP" ); # Disable all XS loading use Test::NoXS ':all';
This modules hijacks DynaLoader and XSLoader to prevent them from loading XS code for designated modules. This is intended to help test how modules react to missing XS, e.g. by dying with a message or by falling back to a pure-Perl alternative.
Modules that should not load XS should be given as a list of arguments to
use Test::NoXS. Alternatively, giving ':all' as an argument will disable all future attempts to load XS.
Please report any bugs or feature requests through the issue tracker at https://github.com/dagolden/test-noxs/issues. You will be notified automatically of any progress on your issue.
This is open source software. The code repository is available for public review and contribution under the terms of the license.
git clone git://github.com/dagolden/test-noxs.git
David Golden <email@example.com>
This software is Copyright (c) 2013 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004