-
-
Notifications
You must be signed in to change notification settings - Fork 324
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
Change Corpus Pruning algorithm #2418
Conversation
corpus.add_disabled(removed)?; | ||
} | ||
for (idx, testcase) in enabled_to_disabled { | ||
state.corpus_mut().add_disabled(testcase)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should ever allow a call to call add(_disabled)
with a testcase that's already added, we should have a set_enabled(true/false)
method instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems counter-intuitive as API, and it will hide bugs where we add them twice by accident
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but this testcase is not "already added" at this point of execution, because we just removed it a few lines before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should have a set_enabled(true/false) method instead
yes i know.
but if we will implement it, then internally it would look the same as this. because disabled and enabled have separate corpus. if you want move them, then the only way is (i guess) to delete from one and then add to the other
No description provided.