@@ -144,7 +144,7 @@ sealed class UtResult
144
144
* - coverage information (instructions) if this execution was obtained from the concrete execution.
145
145
* - comments, method names and display names created by utbot-summary module.
146
146
*/
147
- open class UtExecution (
147
+ abstract class UtExecution (
148
148
val stateBefore : EnvironmentModels ,
149
149
val stateAfter : EnvironmentModels ,
150
150
val result : UtExecutionResult ,
@@ -224,6 +224,27 @@ class UtSymbolicExecution(
224
224
}
225
225
}
226
226
227
+ /* *
228
+ * Execution that result in an error (e.g., JVM crash or another concrete execution error).
229
+ *
230
+ * Contains:
231
+ * - state before the execution;
232
+ * - result (a [UtExecutionFailure] or its subclass);
233
+ * - coverage information (instructions) if this execution was obtained from the concrete execution.
234
+ * - comments, method names and display names created by utbot-summary module.
235
+ *
236
+ * This execution does not contain any "after" state, as it is generally impossible to obtain
237
+ * in case of failure. [MissingState] is used instead.
238
+ */
239
+ class UtFailedExecution (
240
+ stateBefore : EnvironmentModels ,
241
+ result : UtExecutionFailure ,
242
+ coverage : Coverage ? = null ,
243
+ summary : List <DocStatement >? = null ,
244
+ testMethodName : String? = null ,
245
+ displayName : String? = null
246
+ ) : UtExecution(stateBefore, MissingState , result, coverage, summary, testMethodName, displayName)
247
+
227
248
open class EnvironmentModels (
228
249
val thisInstance : UtModel ? ,
229
250
val parameters : List <UtModel >,
0 commit comments