Skip to content
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

Supported assemble models for streams in concrete execution #1229

Merged
merged 7 commits into from
Oct 28, 2022

Conversation

Damtev
Copy link
Member

@Damtev Damtev commented Oct 25, 2022

Description

For MUTs that return java,.util.stream.BaseStream concrete execution constructs UtCompositeModel of classes that implement stream interfaces - in JDK these classes are inheritors of java.util.stream.ReferencePipeline . These classes look very weird to the end user and require a lot of stuff to be constructed. The more acceptable way is constructing UtAssembleModels for streams with methods of and empty. This request adds support for such construction.

Type of Change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Automated Testing

org.utbot.examples.stream.StreamsAsMethodResultExampleTest

Checklist:

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • The change contains enough commentaries, particularly in hard-to-understand areas
  • New documentation is provided or existed one is altered
  • No new warnings
  • New tests have been added
  • All tests pass locally with my changes

@Damtev Damtev added the comp-codegen Issue is related to code generator label Oct 25, 2022
@Damtev Damtev force-pushed the damtev/concrete_stream_models branch from 48c57b8 to 2108036 Compare October 26, 2022 06:28
@Damtev Damtev force-pushed the damtev/concrete_stream_models branch 4 times, most recently from 2f4e3c5 to f8efdb4 Compare October 27, 2022 08:43
@Damtev Damtev force-pushed the damtev/concrete_stream_models branch from f8efdb4 to 96142b1 Compare October 28, 2022 01:47
@Damtev Damtev merged commit 651f7d4 into main Oct 28, 2022
@Damtev Damtev deleted the damtev/concrete_stream_models branch October 28, 2022 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-codegen Issue is related to code generator
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants