Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Extend tests to cover passing an object to parse() #1
The _flatten_into_hashref method was not previously covered by the test suite. This PR extends t/00-base.t to do so by conditionally requiring CGI and then running each of the main block of tests a second time but passing the CGI object to parse() instead of an unblessed hashref.
Note that this would produce a warning with modern versions of CGI.pm without the setting of $CGI::LIST_CONTEXT_WARN to be zero, which itself then requires removal of the "once" warning. You can decide if you are happy with all this suppression but it seemed reasonable to me as a first cut.
As the plan was already calculated dynamically there seemed no need to use skip here.
This PR was provided as part of the CPAN PR Challenge.