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

Fix ignored doctests #753

Merged
merged 3 commits into from
Sep 20, 2023
Merged

Conversation

Philippe-Cholet
Copy link
Member

Doctest attribute What it means
text Not code.
ignore It is ignored by default but might run, e.g. cargo test -- --ignored.
should_panic It must compile but panic at runtime.
no_run It must compile but is not run.
compile_fail It must not compile.
edition2018 Only runs on the given edition.

Personally, I annotate with "ignore" when it's slow and I don't want to run it every time.
Otherwise, I think another attribute should be used.

This doctest can not run because this function (and module) is private.
But it should compile at it is code.
Copy link
Member

@jswrenn jswrenn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jswrenn jswrenn added this pull request to the merge queue Sep 20, 2023
Merged via the queue into rust-itertools:master with commit a104321 Sep 20, 2023
@Philippe-Cholet Philippe-Cholet deleted the ignored-tests branch September 20, 2023 14:25
@jswrenn jswrenn mentioned this pull request Nov 14, 2023
@jswrenn jswrenn added this to the next milestone Nov 14, 2023
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.

2 participants