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

lexically scoped strictness #54

Merged
merged 1 commit into from
Jan 5, 2021
Merged

Conversation

DrHyde
Copy link
Contributor

@DrHyde DrHyde commented Nov 5, 2020

This makes strictness lexically scoped, issue #53. It adds a 'nostrict' argument so that it can be turned off when it is already turned on.

The $STRICT_MODE global no longer exists, instead there's a _strict_mode() method you can call to check what mode you are in.

NB that the key name Test::MockModule/... in the hints hash must not have the module name removed from it. The hash is shared amongst all loaded modules, and that's the convention to make sure various users don't trample on each others' data.

@geofffranks geofffranks merged commit 3ba8bc7 into geofffranks:master Jan 5, 2021
@geofffranks
Copy link
Owner

Sorry, completely lost track of this. thanks for the PR and the nudge!

@DrHyde
Copy link
Contributor Author

DrHyde commented Jan 6, 2021

Thanks

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

Successfully merging this pull request may close these issues.

None yet

2 participants