Skip to content

Fuzzer should generate tests for simple collection with generic types #875

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 Sep 8, 2022 · 0 comments · Fixed by #988
Closed

Fuzzer should generate tests for simple collection with generic types #875

Markoutte opened this issue Sep 8, 2022 · 0 comments · Fixed by #988
Assignees
Labels
comp-fuzzing Issue is related to the fuzzing

Comments

@Markoutte
Copy link
Collaborator

Description

For simple methods fuzzer can and should generate test that fills collection with some data. Consider this example:

public <T> Map<String, T> sortedMap(Map<String, T> source) {
    return new TreeMap<>(source);
}

Both fuzzer and symbolic execution create empty map. But this test is not very interesting. Fuzzer should add some values into a map to run it with them and check, how it affects the result.

@Markoutte Markoutte self-assigned this Sep 8, 2022
@korifey korifey moved this to Todo in UTBot Java Sep 8, 2022
@Markoutte Markoutte added the comp-fuzzing Issue is related to the fuzzing label Sep 8, 2022
@Markoutte Markoutte added this to the Release preparation milestone Sep 8, 2022
@JaneEugenia JaneEugenia moved this from Todo to In Progress in UTBot Java Sep 19, 2022
Repository owner moved this from In Progress to Done in UTBot Java Sep 26, 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