Improve test coverage, extract function for better testing
authorJames E. Keenan <jkeenan@cpan.org>
Sun, 6 Feb 2011 11:07:15 +0000 (12:07 +0100)
committerSteffen Mueller <smueller@cpan.org>
Tue, 12 Jul 2011 18:53:51 +0000 (20:53 +0200)
commitbb5e8eb43128d5ce9d69cb03886e752b19f7b175
tree0190d4e2d97f5db5cf4330b8bde730690feedb58
parent0ec7450ced20cb81face390bacda9f4248c0cdff
Improve test coverage, extract function for better testing

Add files to test EU::PXS::Utilities::map_type(), valid_proto_string(),
process_typemaps().  Extract code for processing a single typemap file
into its own sub, thereby permitting more focused testing.  Eliminate some
unreachable branches and conditions in process_typemaps().

On the basis of coverage analysis, eliminate unreachable code.
Reformat some code for readability (shorter line length).
MANIFEST
dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS/Utilities.pm
dist/ExtUtils-ParseXS/t/104-map_type.t [new file with mode: 0644]
dist/ExtUtils-ParseXS/t/105-valid_proto_string.t [new file with mode: 0644]
dist/ExtUtils-ParseXS/t/106-process_typemaps.t [new file with mode: 0644]
dist/ExtUtils-ParseXS/t/pseudotypemap1 [new file with mode: 0644]