You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running EvoObj on the two methods indicated in shell/src/test/java/feature/objectconstruction/testgeneration/testcase/IncompleteOcgTest.java, there is some odd behaviour that occurs when processing certain InstanceFieldVariableWrapper nodes in the Object Construction Graph (OCG) to produce test case statements. The DepVariableWrapper nodes obtained from the targetVariable for that node are ThatVariableWrapper, and not InstanceFieldVariableWrappers as expected.
Steps to Reproduce
Please break down here below all the needed steps to reproduce the issue.
[If possible, please upload an example of the project you are generating tests for.]
Run the methods (firstExample, secondExample) in debug mode.
Observe the test case statement generation in ConstructionPathSynthesizer (possibly using breakpoints at/near the while condition e.g. at L169 ofConstructionPathSynthesizer)
Tracing the execution, note how on processing the second/third nodes of the OCG a ThisVariableWrapper node is processed for a node in the OCG that does not correspond to a this variable.
Test case does not contain relevant statements to get the desired field.
The text was updated successfully, but these errors were encountered:
Context
When running EvoObj on the two methods indicated in
shell/src/test/java/feature/objectconstruction/testgeneration/testcase/IncompleteOcgTest.java
, there is some odd behaviour that occurs when processing certainInstanceFieldVariableWrapper
nodes in the Object Construction Graph (OCG) to produce test case statements. TheDepVariableWrapper
nodes obtained from thetargetVariable
for that node areThatVariableWrapper
, and notInstanceFieldVariableWrapper
s as expected.Steps to Reproduce
Please break down here below all the needed steps to reproduce the issue.
[If possible, please upload an example of the project you are generating tests for.]
firstExample
,secondExample
) in debug mode.ConstructionPathSynthesizer
(possibly using breakpoints at/near thewhile
condition e.g. at L169 ofConstructionPathSynthesizer
)ThisVariableWrapper
node is processed for a node in the OCG that does not correspond to athis
variable.get
the desired field.The text was updated successfully, but these errors were encountered: