Skip to content

test(toml): improve test coverage - #4211

Merged
kt3k merged 3 commits into
denoland:mainfrom
babiabeo:improve-toml-cov
Jan 17, 2024
Merged

kt3k merged 3 commits into
denoland:mainfrom
babiabeo:improve-toml-cov

Conversation

@babiabeo

Copy link
Copy Markdown
Contributor

Related: #3713

@babiabeo
babiabeo requested a review from kt3k as a code owner January 16, 2024 11:47
@github-actions github-actions Bot added the toml label Jan 16, 2024
Comment thread toml/_parser.ts
count -= line.length + 1;
} else {
return count;
break;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I use break here because subStr.split("\n") always returns a non-empty array. Therefore, the for loop is always called, which makes the line 900 unreachable.

Comment thread toml/test.ts Resolved

@kt3k kt3k left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks!

@kt3k
kt3k merged commit ebe17ad into denoland:main Jan 17, 2024
@babiabeo
babiabeo deleted the improve-toml-cov branch January 17, 2024 03:40
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.

2 participants