Skip to content
New issue

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

t/01-callback.t is incomplete #3

Open
haarg opened this issue Aug 27, 2023 · 0 comments
Open

t/01-callback.t is incomplete #3

haarg opened this issue Aug 27, 2023 · 0 comments

Comments

@haarg
Copy link
Contributor

haarg commented Aug 27, 2023

The test script t/01-callback.t tries to pass a callback to overload::open->import, but overload::open does not have an import method. So the callback is never used for anything, and the test is not testing anything that it intended to.

Perl will ignore an import call if there is no import method. Future versions of perl are intending to make it an error to pass arguments to an undefined import method, which will cause the test to fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant