Skip to content

Fuzzer should change objects which are created with empty constructor by its public setters #289

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

Closed
Markoutte opened this issue Jun 23, 2022 · 0 comments · Fixed by #439
Closed
Assignees

Comments

@Markoutte
Copy link
Collaborator

Description

Fuzzer can create an object with empty public constructor (created explicitly or implicitly), but it is useless because it doesn't change it's state with public setters. Idea is to find all fields that can be changed by public setters (probably that have corresponding getter) and change it.

Expected behavior

Fuzzer should try change objects like this:

class A {
  private int myField;

  pubic void setMyField(int value) {
    myField = value;
  }

  public int getMyField() {
      return myField;
  }
}

Potential alternatives

Some classes has public fields. We can change them also.

Context

This task is a part of general task for generating complex object created by fuzzer.

@Markoutte Markoutte self-assigned this Jun 23, 2022
@korifey korifey moved this to Todo in UTBot Java Jun 23, 2022
Markoutte added a commit that referenced this issue Jul 6, 2022
Markoutte added a commit that referenced this issue Jul 12, 2022
Repository owner moved this from Todo to Done in UTBot Java Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant