Skip to content

Generate test by fuzzing for methods with no parameters #511

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 Jul 13, 2022 · 0 comments · Fixed by #515
Closed

Generate test by fuzzing for methods with no parameters #511

Markoutte opened this issue Jul 13, 2022 · 0 comments · Fixed by #515
Assignees
Labels
comp-fuzzing Issue is related to the fuzzing

Comments

@Markoutte
Copy link
Collaborator

Description

Fuzzing should generate tests for methods without parameters. Usually, these methods have logic using internal object fields. For example:

public class NestedClasses {
    public int field;

    public boolean testObject() {
        if (field > 10) {
            return true;
        }
        return false;
    }
}

Expected behavior

Fuzzing should provide several test with values for a field (for example, 10 and 11).

Environment

This problem is bound to the fact that fuzzer uses simple creation of this object. For example, fuzzer uses reflection to create this instance when method's class doesn't have public empty constructor.

Potential alternatives

There's no alternatives

@Markoutte Markoutte added the comp-fuzzing Issue is related to the fuzzing label Jul 13, 2022
@Markoutte Markoutte self-assigned this Jul 13, 2022
@korifey korifey moved this to Todo in UTBot Java Jul 13, 2022
Repository owner moved this from Todo to Done in UTBot Java Jul 14, 2022
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
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant