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
{{ message }}
Repository navigation
JS. Invalid test generation for multi-dimensional arrays #2143
Parameters that have inferred type as multi-dimensional array crash test generation.
To Reproduce
Install the Release 2022.12.1 plugin into Idea Ultimate 2022.2.4
Create a JavaScript file with following contents:
function test(a) {
if (a[0][0] === 0) {
return 1
}
return 5
}
test([[1]])
Generate tests for this function
Expected behavior
Correct tests are generated
Actual behavior
UnitTestBot throws an error: java.lang.UnsupportedOperationException: No test cases were generated for test
Visual proofs (screenshots, logs, images)
java.lang.UnsupportedOperationException: No test cases were generated for test
at api.JsTestGenerator.makeTestsForMethod(JsTestGenerator.kt:204)
at api.JsTestGenerator.run(JsTestGenerator.kt:142)
at org.utbot.intellij.plugin.language.js.JsDialogProcessor$createTests$1.run(JsDialogProcessor.kt:195)
Activity