GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolves issues reported in RT:66513 for is_type():
Tests for issues in RT:66513
If the string to is_type(...) is not of the form "type/subtype",
check the return is false and no warnings are generated.
Adds Test::NoWarnings as a test dependency.
Verify behaviour for is_ext and is_type for empty strings.
Shh warnings when no subtype given to is_type(...)
When no subtype was found in the provided media type, a warning
regarding the use of uninitialized value in hash element
In this case we immediately return false. Ref RT:66513
Check spec is defined to shhh warnings on perl 5.10
Its only perl 5.12+ that "length undef" returns undef.. D'Oh.
Sorry for the three attempts.. still waiting for perlbrew to install 5.10.1!
Merge pull request #7 from veryrusty/bugfix/is_type
Bugfix: edge cases for is_type() fixes RT:66513