This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add skeleton testing for the MULTICALL macros
authorDavid Mitchell <davem@iabyn.com>
Tue, 19 Oct 2010 21:37:37 +0000 (22:37 +0100)
committerDavid Mitchell <davem@iabyn.com>
Tue, 19 Oct 2010 22:29:25 +0000 (23:29 +0100)
commit9c540340879062c71c21eaf596d6df60630d5bb2
tree69cb2468b54e645ab0dc720c6ff1fa95e4ff22d7
parent557af69b54d1d713b9c1c375b3485b6ee43970ec
add skeleton testing for the MULTICALL macros

The macros dMULTICALL, PUSH_MULTICALL, MULTICALL and POP_MULTICALL
are completely untested in core apart from incidentally in List-Util.
The exercise they get there is probably quite comprehensive, but it's
not explicitly testing the macros themselves.

Add a hook and new test file to XS::APItest specifically for this purpose.
Currently the test file is almost empty.

The multicall_each function is shamelessly stolen from List:;Util::first.
MANIFEST
ext/XS-APItest/APItest.xs
ext/XS-APItest/t/multicall.t [new file with mode: 0644]