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

test for the Repository::config() function #651

Merged

Conversation

alexanderkjall
Copy link
Contributor

I was debugging a thing, and thought that I could just as well push the test I wrote for debugging upstream.

This test verifies that the Repository::config() function returns a config object that have the local repository as highest prio.

…onfig object that have the local repo as highest prio
src/repo.rs Outdated

#[test]
fn smoke_config_write_and_read() {
let td = TempDir::new().unwrap();
Copy link
Member

Choose a reason for hiding this comment

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

There's a helper function used in other tests that creates a temporary directory and repository for you, in one call.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the quick feedback, I have updated the PR to use that.

@alexcrichton alexcrichton merged commit c7492df into rust-lang:master Jan 4, 2021
@alexcrichton
Copy link
Member

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

3 participants