evosuite-plus-plus icon indicating copy to clipboard operation
evosuite-plus-plus copied to clipboard

Computation Graph - issues with test 3

Open ongaaron96 opened this issue 4 years ago • 0 comments

Context

Some issues with graph for test 3 for target method valueChanged(), branch on line 20.

Steps to Reproduce

Run testComputationGraphConstruction3() in ObjectOrientedTest

EvoSuite Arguments

NA

Current Result

  1. Branch on line 20 does not depend on this.tree, however this.tree is in the graph.

  2. Method getPath() is called on parameter e once, but the graph shows 2 getPath() calls on parameter e.

  3. Method isLeaf() is called on object this.model, with argument e.getPath().getLastPathComponent() which is of type Object. This argument is passed as parameter node in isLeaf() method. Lines 121 and 129 calls getClass() on node, however the graph shows that getClass is called on this.model instead.

image

image

image

Expected result

As explained above.

Additional info

NA

ongaaron96 avatar Aug 09 '20 08:08 ongaaron96