Skip to content

Conversation

@Kybxd
Copy link
Collaborator

@Kybxd Kybxd commented Jun 19, 2025

@codecov
Copy link

codecov bot commented Jun 19, 2025

Codecov Report

Attention: Patch coverage is 83.33333% with 3 lines in your changes missing coverage. Please review.

Project coverage is 71.31%. Comparing base (4b09f7c) to head (05b7200).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
internal/x/xproto/value.go 57.14% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #259      +/-   ##
==========================================
+ Coverage   71.28%   71.31%   +0.03%     
==========================================
  Files          83       83              
  Lines       10342    10353      +11     
==========================================
+ Hits         7372     7383      +11     
  Misses       2404     2404              
  Partials      566      566              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.


func (r *RowCells) Ignored() bool {
if cell, err := r.Cell("#IGNORE", false); err == nil {
if ok, _ := xproto.ParseBool(cell.Data); ok {
Copy link
Member

Choose a reason for hiding this comment

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

DO NOT ignore func returned error!
If encounterd error, the process should crash and report the error.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is meant to accept any values on #IGNORE column, but only those where xproto.ParseBool returns true are recognized as ignoring this line.

return ""
}

func ParseBool(value string) (bool, error) {
Copy link
Member

Choose a reason for hiding this comment

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

For public func, should add func comment.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@wenchy wenchy changed the title confgen(table): add a specifier to ingore some rows confgen(table): add a specifier to ignore some rows Sep 22, 2025
Comment on lines +285 to +288
// trim integer boring suffix matched by regexp `.0+$`
if matches := types.MatchBoringInteger(value); len(matches) > 1 {
return strconv.ParseBool(matches[1])
}
Copy link
Member

Choose a reason for hiding this comment

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

Any reason to do this special converting?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the original logic in purifyInteger, which is deleted by this merge request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

confgen(IgnoreRows): add a specifier to ignore some rows of data

3 participants