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

lib: Add path functions #20991

Merged
merged 1 commit into from
Sep 17, 2024
Merged

lib: Add path functions #20991

merged 1 commit into from
Sep 17, 2024

Conversation

mvollmer
Copy link
Member

@mvollmer mvollmer commented Sep 10, 2024

No description provided.

pkg/lib/test-path.ts Fixed Show fixed Hide fixed
@mvollmer mvollmer force-pushed the lib-path branch 2 times, most recently from 1db0231 to 0aa51c6 Compare September 10, 2024 11:39
Comment on lines +24 to +25
pos -= 1;
return pos == path.length ? path : path.substr(0, pos);
Copy link
Contributor

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.

Copy link
Member

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 "/";
Copy link
Contributor

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.

Copy link
Member

@jelly jelly left a comment

Choose a reason for hiding this comment

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

Comment on lines +24 to +25
pos -= 1;
return pos == path.length ? path : path.substr(0, pos);
Copy link
Member

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 :)

@jelly jelly merged commit 916dd7e into cockpit-project:main Sep 17, 2024
84 checks passed
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.

3 participants