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

Periodically generate calls to view methods in the CallSequence #55

Open
Xenomega opened this issue Dec 2, 2022 · 1 comment
Open
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed high-priority

Comments

@Xenomega
Copy link
Member

Xenomega commented Dec 2, 2022

We'll want to periodically call view methods to increase coverage. Additionally, assertion testing supports config-driven options to enable assert testing of view methods, but the FuzzerWorker only produces CallSequences with calls targeting state changing methods right now, so it's never hit.

Requirements:

  • Record view functions separately, but alongside the existing stateChangingMethods (see the updateStateChangingMethods method)
  • Add a really low probability of sourcing a target method from it (instead of stateChangingMethods) at the top of the generateFuzzedCall method.
  • Ensure the corpus.UpdateCorpusAndCoverageMaps method checks if the last call was to a view method. If it was, do not record the call sequence in the corpus at that step, as it's not a coverage-increasing sequence we'd be interested in recording, as it was not state changing.
@Jaime-Iglesias
Copy link
Contributor

Jaime-Iglesias commented Apr 11, 2023

Will try to pick this up starting tomorrow.

Looks like this is already being worked on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed high-priority
Projects
None yet
Development

No branches or pull requests

3 participants