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

fix: add unit tests to Row #77

Closed
wants to merge 1 commit into from
Closed

Conversation

Elbehery
Copy link
Contributor

@Elbehery Elbehery commented Oct 8, 2024

What changes were proposed in this pull request?

#75 shows that Row type has a bug.

I added tests to the Row types.

Why are the changes needed?

To guarantee bug free implementation of Row type.

Does this PR introduce any user-facing change?

No

How was this patch tested?

The PR adds unit-tests for the Row type.

fixes #76

Signed-off-by: Mustafa Elbehery melbeher@redhat.com

@@ -46,7 +59,7 @@ func (r *rowImpl) Len() int {
}

func (r *rowImpl) FieldNames() []string {
names := make([]string, len(r.offsets))
var names []string
Copy link
Contributor

Choose a reason for hiding this comment

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

can you fix this line to pickup the latest master changes that pre-allocates please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks a lot, that is the best solution, I was confused how to do it 🙏🏽 🙏🏽 🙏🏽 🙏🏽 🙏🏽

fixing ...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done 👍🏽

Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
Copy link
Contributor

@grundprinzip grundprinzip left a comment

Choose a reason for hiding this comment

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

merging to master

@grundprinzip
Copy link
Contributor

Thanks for your contribution

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.

Add test for Row type
2 participants