Skip to content

When enum is not accessible, it shouldn't be created by fuzzer (#1660) #1752

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

Conversation

Markoutte
Copy link
Collaborator

Description

Before there's no accessibility check for enum types.

Fixes #1660

How to test

Automated tests

utbot-fuzzer/src/test/kotlin/org/utbot/fuzzing/JavaFuzzingTest.kt

Manual tests

Run this example:

public class PrivateTest {
    public void foo(Call call) {

    }

    private enum Call {
        ONE;
    }
}

Self-check list

  • I've set the proper labels for my PR (at least, for category and component).
  • PR title and description are clear and intelligible.
  • I've added enough comments to my code, particularly in hard-to-understand areas.
  • The functionality I've repaired, changed or added is covered with automated tests.
  • Manual tests have been provided optionally.
  • The documentation for the functionality I've been working on is up-to-date.

@Markoutte Markoutte added comp-fuzzing Issue is related to the fuzzing ctg-bug-fix PR is fixing a bug labels Jan 26, 2023
@Vassiliy-Kudryashov Vassiliy-Kudryashov removed their assignment Jan 26, 2023
@Vassiliy-Kudryashov Vassiliy-Kudryashov merged commit 5eac028 into main Jan 26, 2023
@Vassiliy-Kudryashov Vassiliy-Kudryashov deleted the pelevin/1660_Fuzzer_generates_values_when_class_is_private_and_extends_Collection branch January 26, 2023 12:10
@alisevych alisevych added this to the 2023.03 Release milestone Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-fuzzing Issue is related to the fuzzing ctg-bug-fix PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fuzzer generates values when class is private and extends Collection
3 participants