Skip to content

Fix empty else-branch in parameterized test generation #908

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

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

sofurihafe
Copy link
Member

@sofurihafe sofurihafe commented Sep 12, 2022

Description

This PR fixes empty else-branch by adding extra assertion for actual.

Fixes # (518)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Automated Testing

Run utbot-samples pipeline.

Manual Scenario

Run parameterized test generation for streamOf method in runIde. Verify that there are assertions. And generated test looks like this:
image

@sofurihafe sofurihafe force-pushed the andrey-t/518-empty-else-branch branch 5 times, most recently from 94ce47f to eba169f Compare September 19, 2022 08:00
@sofurihafe sofurihafe force-pushed the andrey-t/518-empty-else-branch branch from eba169f to 2490ddd Compare September 20, 2022 17:57
@EgorkaKulikov EgorkaKulikov merged commit 1787b42 into main Sep 21, 2022
@EgorkaKulikov EgorkaKulikov deleted the andrey-t/518-empty-else-branch branch September 21, 2022 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty else-block in case of possibly nullable expected value in parametrized test generation
2 participants