Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@shresss
Copy link
Contributor

@shresss shresss commented Jun 4, 2025

This PR adds gridRing to fuzzerGridDisk.c to improve test coverage, as requested in #1011.
Related to @justinhwang's PR: #1011.

@CLAassistant
Copy link

CLAassistant commented Jun 4, 2025

CLA assistant check
All committers have signed the CLA.


#define ARG_HELP \
{ .names = {"-h", "--help"}, .helpText = "Show this help message." }
{.names = {"-h", "--help"}, .helpText = "Show this help message."}
Copy link
Collaborator

Choose a reason for hiding this comment

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

inadvertent formatting change?

Comment on lines 62 to 65
if (results != NULL) {
H3_EXPORT(gridRing)(args->index, args->k, results); // Test the safe version
}
free(results);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if (results != NULL) {
H3_EXPORT(gridRing)(args->index, args->k, results); // Test the safe version
}
free(results);
if (results != NULL) {
H3_EXPORT(gridRing)(args->index, args->k, results); // Test the safe version
}
free(results);

inadvertent formatting issue?

free(results);

// TODO: use int64_t
results = calloc(sizeof(H3Index), sz);
Copy link
Collaborator

Choose a reason for hiding this comment

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

the comment above belongs with the int *distances line below?

@isaacbrodsky isaacbrodsky changed the title Gridring gridRing in fuzzer Jun 5, 2025
@coveralls
Copy link

Coverage Status

coverage: 98.801% (+0.02%) from 98.786%
when pulling 9668a06 on shresss:gridring
into b70bd72 on uber:master.

@isaacbrodsky
Copy link
Collaborator

You may be using a different version of clang-format which is resulting in conflicting formatting and CI failing. You may want to reapply your commit with formatting disabled since it is just a few lines of code.

@dfellis
Copy link
Collaborator

dfellis commented Jun 5, 2025

Also, now that the other PR is merged, you can drop the incomplete commit and rebase on the latest commit in the repo.

@shresss
Copy link
Contributor Author

shresss commented Jun 5, 2025

The rebase was giving me a lot of trouble with merging conflicts but I'm pretty sure they are all fixed and I opted for git add and used the ctang format file in the codebase to further correct format on top of my manual edits, I hope this has worked I will verify on my end for a bit, edit to comment** this is so odd my commit seemed to somehow add more format changes i thought I had formatting disabled let me resolve this

@dfellis
Copy link
Collaborator

dfellis commented Jun 5, 2025

Hi @shresss you need to git rebase -i and delete @justinhwang 's commit from the list. He updated it with a force push before merging, and that's what's causing the merge conflicts. (You might have a few merge conflicts of your own after that, but likely simple ones if any.)

@shresss shresss closed this Jun 5, 2025
shresss added a commit to shresss/h3 that referenced this pull request Jun 5, 2025
Adds gridRing testing to fuzzerGridDisk.c to improve test coverage
as requested in uber#1011 and as I tried but ran into merge issues with in uber#1012.
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.

5 participants