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

Add tests for ClosureOnce. #41

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Add tests for ClosureOnce. #41

wants to merge 1 commit into from

Commits on Dec 20, 2021

  1. Add tests for ClosureOnce.

    We check that we can call a ClosureOnce once successfully,
    but it’s an error to call it twice. Normally if this error
    occurs, the program exits (code 2), because it isn’t
    safe to panic when calling a callback. However, in
    cfg(test) this error results in a panic so that we can
    test the error using #[should_panic].
    tov committed Dec 20, 2021
    Configuration menu
    Copy the full SHA
    a79c792 View commit details
    Browse the repository at this point in the history