-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
lib: Add path functions #20991
lib: Add path functions #20991
Conversation
1db0231
to
0aa51c6
Compare
pos -= 1; | ||
return pos == path.length ? path : path.substr(0, pos); |
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.
These 2 added lines are not executed by any test.
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.
So hmm this coverage does not account for the qunit coverage right? Feature, Bug ;-)
Would be awesome to merge them but sounds tedious so back to reviewing :)
if (pos < 0) | ||
return "."; | ||
else if (pos == 0) | ||
return "/"; |
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.
This added line is not executed by any test.
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.
This is cool stuff!
Follow ups in machines and files would be nice 👍
pos -= 1; | ||
return pos == path.length ? path : path.substr(0, pos); |
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.
So hmm this coverage does not account for the qunit coverage right? Feature, Bug ;-)
Would be awesome to merge them but sounds tedious so back to reviewing :)
No description provided.