kite-testing / jp.co.cyberagent.kite.testing / TestKiteDslScope / <init>
<init>¶
TestKiteDslScope(kiteContext: KiteContext = KiteContext(), testCoroutineScope: TestCoroutineScope = TestCoroutineScope())
A scope for testing kite DSL.
The scope provides some default contextual value for running test synchronously.
- All dispatchers in KiteCoroutineDispatchers become the TestCoroutineDispatcher of the testCoroutineScope.
- KiteStateCreator creates thread unsafe state and the value of state will update immediately.
- MainThreadChecker always assert current thread is the main thread.
You can override above default contextual value via kiteContext.
Parameters¶
kiteContext
- additional context.
testCoroutineScope
- the coroutine scope of the KiteDslScope.