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

Rename some functions in fuzzer.rs #2355

Merged
merged 2 commits into from
Jul 1, 2024
Merged

Rename some functions in fuzzer.rs #2355

merged 2 commits into from
Jul 1, 2024

Conversation

tokatoka
Copy link
Member

@tokatoka tokatoka commented Jul 1, 2024

Some functions have really strange names.
execute_no_process doesn't execute anything.
execute_and_process doesn't execute anything either.

i just rename it to make them have proper names

@tokatoka tokatoka merged commit 7c95afc into main Jul 1, 2024
97 checks passed
@tokatoka tokatoka deleted the rename11 branch July 1, 2024 19:47
@@ -411,7 +411,7 @@ where
where
EM: EventFirer<State = Self::State>,
{
let exec_res = self.execute_no_process(state, manager, &input, observers, exit_kind)?;
let exec_res = self.check_results(state, manager, &input, observers, exit_kind)?;
let corpus_id = self.process_execution(
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this guy be evaluate_execution?

Copy link
Member Author

Choose a reason for hiding this comment

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

evaluate_execution is already used. actually it's wrapping this

evaluate_execution have two wrapped functions
check_results: to see if the testcase is obj or corpus and
process_execution: append metadatas

Copy link
Member

Choose a reason for hiding this comment

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

naming is hard

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.

2 participants