Replies: 1 comment
-
@Damtev Please add your concerns |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Currently UTBot verifies only the state of the resulting Objects.
When a functional interface is returned there should be some verification of it.
At the moment there are only expected and actual - of Object type - without assertions: see bug #1034
Idea
Add verification of returned functional interface's behavior.
Generate some value to input to its method and compare with the expected value.
Fuzzing can be used for that.
Use cases
Functional interfaces returned from a method.
Potential alternatives
Check the Class of the returned functional interface.
Example
Generate tests for the following code:
Expected result
Actual result
Beta Was this translation helpful? Give feedback.
All reactions