Skip to content

Fuzzing doesn't generate test for package-private parameters #449

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 7, 2022 · 1 comment
Closed

Fuzzing doesn't generate test for package-private parameters #449

Markoutte opened this issue Jul 7, 2022 · 1 comment
Assignees
Labels
ctg-bug Issue is a bug

Comments

@Markoutte
Copy link
Collaborator

Description

Fuzzing can create objects if they have public constructors (include default implicit one). But package-private constructors can be also called when test runs from the same package (and module). Currently, fuzzing doesn't generate any models in this situation.

To Reproduce

Generate test for a method t:

class A {
    public int f;
}

public class First {

    public void t(A a) {
    }
}

Expected behavior

There's a generated test without reflection

Actual behavior

Currently, fuzzing creates a test using reflection.

@Markoutte Markoutte added the ctg-bug Issue is a bug label Jul 7, 2022
@Markoutte Markoutte self-assigned this Jul 7, 2022
@Markoutte
Copy link
Collaborator Author

Fixed with #439

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ctg-bug Issue is a bug
Projects
None yet
Development

No branches or pull requests

1 participant