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

refactor(csv): remove dead code and improve tests #5151

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Jun 26, 2024

part of #3713

This improves the test coverage of csv/parse.ts.

@github-actions github-actions bot added the csv label Jun 26, 2024
Copy link

codecov bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.21%. Comparing base (1adff2d) to head (7162997).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5151   +/-   ##
=======================================
  Coverage   93.20%   93.21%           
=======================================
  Files         473      473           
  Lines       38060    38054    -6     
  Branches     5420     5421    +1     
=======================================
- Hits        35473    35471    -2     
+ Misses       2543     2539    -4     
  Partials       44       44           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines -54 to -55
!this.#input.startsWith("\r\n", this.#cursor) ||
!this.#input.startsWith("\n", this.#cursor)
Copy link
Member Author

Choose a reason for hiding this comment

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

This condition can't be false as the same string can't start with both \r\n and \n.

Copy link
Collaborator

@iuioiua iuioiua left a comment

Choose a reason for hiding this comment

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

Nice

@kt3k kt3k merged commit ba256e3 into denoland:main Jun 26, 2024
15 checks passed
@kt3k kt3k deleted the test-improve-csv-parse branch June 26, 2024 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants