Open
Description
Description
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)
Environment
IntelliJ IDEA 2023.1 (Ultimate Edition)
Metadata
Metadata
Assignees
Type
Projects
Status
Todo