-
Notifications
You must be signed in to change notification settings - Fork 260
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
testing get_git_username using git-testtools for #700 #812
Conversation
Hi @o2sh and @spenserblack, |
I suspect a recent update of tarpaulin to be the cause for the drop: Indeed, we always pull the latest version when generating the codecov report. - name: Install cargo-tarpaulin
uses: actions-rs/install@v0.1
with:
crate: cargo-tarpaulin
version: latest This is just a supposition, I haven't tested it locally. |
src/info/title.rs
Outdated
@@ -1,83 +1,155 @@ | |||
use super::get_style; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 Looks like this file was (correctly) converted to LF line endings.
For the sake of a reasonable diff, I think we should convert all files to LF so that it's easier to compare this and #813
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see working on converting in #815
Oops, did I do that? Shoot, I really was trying to keep it CR LF, I guess 2 wrongs do make a right!
It is crazy that in 2022 we have to think about line endings, maybe in another 100 years this will be resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, did I do that?
You correctly did that (See .editorconfig
file) 😆
I incorrectly set up an EditorConfig and never enforced its settings in a workflow.
* Convert line endings to LF This should result in more reasonable diffs of future contributions where a contributor's text editor would automatically convert line endings. See #812, #813 * Create .rustfmt.toml Enforces Unix-style newlines. Co-authored-by: Ossama Hjaji <ossama-hjaji@live.fr> Co-authored-by: Ossama Hjaji <ossama-hjaji@live.fr>
Thanks @atluft! If you feel comfortable rebasing onto
|
@spenserblack squash is a wonderful feature! |
Discovered the "Ready for Review" button! |
Co-authored-by: Spenser Black <spenserblack01@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you for helping us with testing! Leaving one minor nitpick.
Co-authored-by: Spenser Black <spenserblack01@gmail.com>
Co-authored-by: Spenser Black <spenserblack01@gmail.com>
Trying to add a test for a function that uses a git repo created specifically to test the function. In this case the repo has a local configuration w/ the "committer.name" and "committer.email" set to known values.
Other typical values are added to the repo too. Like "user.name" and "user.email" and "author.name" and "author.email" to ensure those aren't selected as the correct values, although there are cases where those would be correct.
Interesting discovery is that "committer.name" won't be selected if "committer.email" isn't present too. Not sure that is an issue to pursue or not.
Testing: