Home
last modified time | relevance | path

Searched refs:safeContext (Results 1 – 2 of 2) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-test/src/
DTestCoroutineScope.kt50 var safeContext = context in TestCoroutineScope() variable
51 if (context[ContinuationInterceptor] == null) safeContext += TestCoroutineDispatcher() in TestCoroutineScope()
52 if (context[CoroutineExceptionHandler] == null) safeContext += TestCoroutineExceptionHandler() in TestCoroutineScope()
53 return TestCoroutineScopeImpl(safeContext) in TestCoroutineScope()
DTestBuilders.kt46 val (safeContext, dispatcher) = context.checkArguments() in runBlockingTest() constant
47 val startingJobs = safeContext.activeJobs() in runBlockingTest()
48 val scope = TestCoroutineScope(safeContext) in runBlockingTest()
57 val endingJobs = safeContext.activeJobs() in runBlockingTest()