Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,14 @@ abstract class TestFrameworkManager(val context: CgContext)

abstract fun passArgumentsToArgsVariable(argsVariable: CgVariable, argsArray: CgVariable, executionIndex: Int)

open fun expectTimeout(timeoutMs: Long, block: () -> Unit) {}
/**
* Most frameworks don't have special timeout assertion, so only tested
* method call is generated, while timeout is set using
* [timeout argument][timeoutArgumentName] of the test annotation
*
* @see setTestExecutionTimeout
*/
open fun expectTimeout(timeoutMs: Long, block: () -> Unit): Unit = block()

open fun setTestExecutionTimeout(timeoutMs: Long) {
val timeout = CgNamedAnnotationArgument(
Expand Down