Open
Description
Description
During test generation by contest estimator, error logged.
To Reproduce
Steps to reproduce the behavior:
- Open utbot project
- Open
org.utbot.contest.ContestEstimatorKt
file - Increase timeout
val timeLimit = 160
- Leave only
guava-26.0
andcom.google.common.base.internal.Finalizer.*
:
methodFilter = "com.google.common.base.internal.Finalizer.*"
projectFilter = listOf("guava-26.0")
- Start
ContestEstimatorKt#main
Expected behavior
Tests are generated without errors
Actual behavior
Some tests are generated, but at the end of console output error logged:
#Test classes failed to compile = 0 out of 1:
----------------------------------------
Most common fail reasons in symbolic execution:
Finalizer#getFinalizeReferentMethod
-->> In 1 method(s) :: java.lang.IllegalStateException: RefType kotlin.collections.EmptyMap not loaded. If you tried to get the RefType of a library class, did you call loadNecessaryClasses()? Otherwise please check Soot's classpath.
at soot.Scene.getRefType(Scene.java:1135)
at org.utbot.engine.ResolverKt$toMethodResult$11$1.invoke(Resolver.kt:1241)
at org.utbot.engine.ResolverKt$toMethodResult$11$1.invoke(Resolver.kt:1239)
at org.utbot.engine.Traverser.asMethodResult$utbot_framework(Traverser.kt:3803)
at org.utbot.engine.ResolverKt.toMethodResult(Resolver.kt:1239)
at org.utbot.engine.Traverser.makeConcreteUpdatesForNonEnumStaticField(Traverser.kt:679)
at org.utbot.engine.Traverser.processStaticFieldConcretely(Traverser.kt:587)
at org.utbot.engine.Traverser.processStaticInitializer(Traverser.kt:487)
at org.utbot.engine.Traverser.processStaticInitializerIfRequired(Traverser.kt:394)
at org.utbot.engine.Traverser.doPreparatoryWorkIfRequired(Traverser.kt:366)
at org.utbot.engine.Traverser.traverseStmt(Traverser.kt:329)
at org.utbot.engine.Traverser.traverse(Traverser.kt:312)
at org.utbot.engine.UtBotSymbolicEngine$traverseImpl$1.invokeSuspend(UtBotSymbolicEngine.kt:301)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
Metadata
Metadata
Assignees
Type
Projects
Status
Todo