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

Make tests private #5895

Closed
wants to merge 3 commits into from
Closed

Make tests private #5895

wants to merge 3 commits into from

Conversation

huonw
Copy link
Member

@huonw huonw commented Apr 15, 2013

This patch is a sledge hammer that moves all tests into #[cfg(test)] mod test { .. }, and makes them private, there were several instances of pub mod tests { #[test] pub fn ... }.

(The reason for this is I was playing with using syntax to index code (result so far) and it was getting some junk from the tests.)

The rustdoc commit is particularly brutal, so it's fine if that one isn't landed.

bors added a commit that referenced this pull request Apr 16, 2013
This patch is a sledge hammer that moves all tests into `#[cfg(test)] mod test { .. }`, and makes them private, there were several instances of `pub mod tests { #[test] pub fn ... } `.

(The reason for this is I was playing with using `syntax` to index code ([result so far](http://www.ug.it.usyd.edu.au/~hwil7821/rust-api/)) and it was getting some junk from the tests.)

The rustdoc commit is particularly brutal, so it's fine if that one isn't landed.
@bors bors closed this Apr 16, 2013
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.

4 participants