Home
last modified time | relevance | path

Searched refs:assertFailsWith (Results 1 – 25 of 118) sorted by relevance

12345

/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/test/migration/
DTestRunBlockingTest.kt57 assertFailsWith<TimeoutCancellationException> { in <lambda>()
79 assertFailsWith<TimeoutCancellationException> { in <lambda>()
115 assertFailsWith<TimeoutCancellationException> { in <lambda>()
145 assertFailsWith<TimeoutCancellationException> { in <lambda>()
177 assertFailsWith<IllegalArgumentException> { in <lambda>()
189 assertFailsWith<IllegalArgumentException> { in <lambda>()
206 assertFailsWith<IllegalArgumentException> { in <lambda>()
293 assertFailsWith<UncompletedCoroutinesError> { in <lambda>()
305 assertFailsWith<IllegalArgumentException> { in <lambda>()
314 assertFailsWith<IllegalArgumentException> { in <lambda>()
[all …]
DRunTestLegacyScopeTest.kt46 assertFailsWith<IllegalStateException> { in <lambda>()
71 assertFailsWith<UncompletedCoroutinesError> { fn() } in <lambda>()
116 assertFailsWith<IllegalArgumentException> { in <lambda>()
124 assertFailsWith<RuntimeException> { it() } in <lambda>()
133 assertFailsWith<RuntimeException> { it() } in <lambda>()
165 assertFailsWith<AssertionError> { it() } in <lambda>()
181 assertFailsWith<TimeoutCancellationException> { it() } in <lambda>()
194 assertFailsWith<TestException> { it() } in <lambda>()
DTestCoroutineScopeTest.kt17 assertFailsWith<IllegalArgumentException> { in <lambda>()
91 assertFailsWith<AssertionError> { scope.cleanupTestCoroutines() } in <lambda>()
106 assertFailsWith<AssertionError> { scope.cleanupTestCoroutines() } in <lambda>()
134 assertFailsWith<TestException> { in <lambda>()
150 assertFailsWith<TestException> { in <lambda>()
160 assertFailsWith<IllegalStateException> { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/terminal/
DSingleTest.kt28 assertFailsWith<IllegalArgumentException> { flow.single() } in <lambda>()
34 assertFailsWith<NoSuchElementException> { flow<Int> {}.single() } in <lambda>()
44 assertFailsWith<TestException> { flow.single() } in <lambda>()
45 assertFailsWith<TestException> { flow.singleOrNull() } in <lambda>()
55 assertFailsWith<TestException> { flow.single() } in <lambda>()
56 assertFailsWith<TestException> { flow.singleOrNull() } in <lambda>()
63 assertFailsWith<NoSuchElementException> { flowOf<Int?>().single() } in <lambda>()
81 assertFailsWith<IllegalArgumentException> { flow2.single() } in <lambda>()
DCountTest.kt33 assertFailsWith<TestException> { flow.count() } in <lambda>()
34 assertFailsWith<TestException> { flow.count { false } } in <lambda>()
44 assertFailsWith<TestException> { flow.count() } in <lambda>()
45 assertFailsWith<TestException> { flow.count { false } } in <lambda>()
DFirstTest.kt32 assertFailsWith<NoSuchElementException> { flow.first { it > 3 } } in <lambda>()
60 assertFailsWith<NoSuchElementException> { emptyFlow<Int>().first() } in <lambda>()
61 assertFailsWith<NoSuchElementException> { emptyFlow<Int>().first { true } } in <lambda>()
77 assertFailsWith<TestException> { in <lambda>()
150 assertFailsWith<TestException> { in <lambda>()
177 assertFailsWith<CancellationException> { flow.first() } in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/channels/
DChannelBuildersFlowTest.kt21 assertFailsWith<IllegalStateException> { flow.collect() } in <lambda>()
48 assertFailsWith<IllegalStateException> { flow.collect() } in <lambda>()
62 assertFailsWith<TestException> { flow.sum() } // exception in the rest in <lambda>()
74 assertFailsWith<TestException> { flow.sum() } in <lambda>()
75 assertFailsWith<IllegalStateException> { flow.collect() } in <lambda>()
87 assertFailsWith<TestException> { flow.sum() } in <lambda>()
88 assertFailsWith<TestException> { flow.collect() } // repeated collection -- same exception in <lambda>()
96 assertFailsWith<IllegalStateException> { flow.produceIn(this) } in <lambda>()
124 assertFailsWith<IllegalStateException> { flow.produceIn(this) } in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DCancellableContinuationHandlersTest.kt30 assertFailsWith<IllegalStateException> { c.invokeOnCancellation { expectUnreached() } } in <lambda>()
36 assertFailsWith<TestException> { in <lambda>()
42assertFailsWith<IllegalStateException> { c.invokeOnCancellation { expectUnreached() } } in <lambda>()
56assertFailsWith<IllegalStateException> { c.invokeOnCancellation { expectUnreached() } } in <lambda>()
76assertFailsWith<IllegalStateException> { c.invokeOnCancellation { expectUnreached() } } in <lambda>()
88 assertFailsWith<CancellationException> { in <lambda>()
110 assertFailsWith<IllegalStateException> { in <lambda>()
125assertFailsWith<IllegalStateException> { c.invokeOnCancellation { expectUnreached() } } in <lambda>()
141assertFailsWith<IllegalStateException> { c.invokeOnCancellation { expectUnreached() } } in <lambda>()
DJobExtensionsTest.kt47 assertFailsWith<JobCancellationException> { job.ensureActive() } in <lambda>()
48 assertFailsWith<JobCancellationException> { scope.ensureActive() } in <lambda>()
49 assertFailsWith<JobCancellationException> { scope.coroutineContext.ensureActive() } in <lambda>()
91 assertFailsWith<IllegalStateException> { EmptyCoroutineContext.job } in <lambda>()
92 assertFailsWith<IllegalStateException> { Dispatchers.Default.job } in <lambda>()
93 assertFailsWith<IllegalStateException> { (Dispatchers.Default + CoroutineName("")).job } in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/operators/
DRetryTest.kt40 assertFailsWith<TestException>(flow) in <lambda>()
42 assertFailsWith<TestException>(flow.retry(2)) in <lambda>()
55 assertFailsWith<TestException>(flow.retry(1) { it !is TestException }) in <lambda>()
68 assertFailsWith<TestException>(flow) in <lambda>()
123 assertFailsWith<TestException>(flow) in <lambda>()
142 assertFailsWith<TestException>(flow) in <lambda>()
161 assertFailsWith<TestException>(flow) in <lambda>()
DFlowOnTest.kt72 assertFailsWith<TestException> { flow.single() } in <lambda>()
89 assertFailsWith<TestException>(flow) in testFlowOnThrowingOperator()
111 assertFailsWith<TestException> { flow.single() } in <lambda>()
247 assertFailsWith<TimeoutCancellationException>(flow) in <lambda>()
260 assertFailsWith<TimeoutCancellationException>(flow) in <lambda>()
316 assertFailsWith<TestException> { flow.single() } in <lambda>()
317 assertFailsWith<TestException>(flow) in <lambda>()
324 assertFailsWith<IllegalArgumentException> { flow.flowOn(Job()) } in testIllegalArgumentException()
347 assertFailsWith<CancellationException> { in <lambda>()
DCatchTest.kt20 assertFailsWith<TestException>(flow) in <lambda>()
33 assertFailsWith<TestException>(flow) in <lambda>()
57 assertFailsWith<TestException>(flow) in <lambda>()
163 assertFailsWith<TestException>(flow) in <lambda>()
182 assertFailsWith<TestException>(flow) in <lambda>()
201 assertFailsWith<TestException>(flow) in <lambda>()
/external/cronet/third_party/protobuf/java/kotlin/src/test/kotlin/com/google/protobuf/
DDslMapTest.kt35 import kotlin.test.assertFailsWith
94 assertFailsWith<UnsupportedOperationException> { in dslMapIsNotEvenSecretlyMutable()
104 assertFailsWith<UnsupportedOperationException> { in dslMapKeysAreNotEvenSecretlyMutable()
116 assertFailsWith<UnsupportedOperationException> { in dslMapKeysIteratorIsNotEvenSecretlyMutable()
126 assertFailsWith<UnsupportedOperationException> { in dslMapValuesAreNotEvenSecretlyMutable()
138 assertFailsWith<UnsupportedOperationException> { in dslMapValuesIteratorIsNotEvenSecretlyMutable()
149 assertFailsWith<UnsupportedOperationException> { in dslMapEntriesAreNotEvenSecretlyMutable()
161 assertFailsWith<UnsupportedOperationException> { in dslMapEntriesIteratorIsNotEvenSecretlyMutable()
171 assertFailsWith<UnsupportedOperationException> { in dslMapEntryObjectsAreNotEvenSecretlyMutable()
DByteStringsTest.kt38 import kotlin.test.assertFailsWith
68 assertFailsWith<IndexOutOfBoundsException> { str[-1] } in byteAtBelowZero()
69 assertFailsWith<IndexOutOfBoundsException> { str[-2] } in byteAtBelowZero()
75 assertFailsWith<IndexOutOfBoundsException> { str[3] } in byteAtAboveLength()
76 assertFailsWith<IndexOutOfBoundsException> { str[4] } in byteAtAboveLength()
DDslListTest.kt35 import kotlin.test.assertFailsWith
70 assertFailsWith<UnsupportedOperationException> { in dslListIsNotEvenSecretlyMutable()
82 assertFailsWith<UnsupportedOperationException> { in dslList_IteratorIsNotEvenSecretlyMutable()
94 assertFailsWith<UnsupportedOperationException> { in dslList_ListIteratorIsNotEvenSecretlyMutable()
106 assertFailsWith<UnsupportedOperationException> { in dslList_ListIteratorIndexIsNotEvenSecretlyMutable()
DExtensionListTest.kt37 import kotlin.test.assertFailsWith
82 assertFailsWith<UnsupportedOperationException> { in extensionListIsNotEvenSecretlyMutable()
96 assertFailsWith<UnsupportedOperationException> { in extensionList_IteratorIsNotEvenSecretlyMutable()
110 assertFailsWith<UnsupportedOperationException> { in extensionList_ListIteratorIsNotEvenSecretlyMutable()
124 assertFailsWith<UnsupportedOperationException> { in extensionList_ListIteratorIndexIsNotEvenSecretlyMutable()
/external/protobuf/java/kotlin/src/test/kotlin/com/google/protobuf/
DDslMapTest.kt35 import kotlin.test.assertFailsWith
94 assertFailsWith<UnsupportedOperationException> { in dslMapIsNotEvenSecretlyMutable()
104 assertFailsWith<UnsupportedOperationException> { in dslMapKeysAreNotEvenSecretlyMutable()
116 assertFailsWith<UnsupportedOperationException> { in dslMapKeysIteratorIsNotEvenSecretlyMutable()
126 assertFailsWith<UnsupportedOperationException> { in dslMapValuesAreNotEvenSecretlyMutable()
138 assertFailsWith<UnsupportedOperationException> { in dslMapValuesIteratorIsNotEvenSecretlyMutable()
149 assertFailsWith<UnsupportedOperationException> { in dslMapEntriesAreNotEvenSecretlyMutable()
161 assertFailsWith<UnsupportedOperationException> { in dslMapEntriesIteratorIsNotEvenSecretlyMutable()
171 assertFailsWith<UnsupportedOperationException> { in dslMapEntryObjectsAreNotEvenSecretlyMutable()
DByteStringsTest.kt38 import kotlin.test.assertFailsWith
68 assertFailsWith<IndexOutOfBoundsException> { str[-1] } in byteAtBelowZero()
69 assertFailsWith<IndexOutOfBoundsException> { str[-2] } in byteAtBelowZero()
75 assertFailsWith<IndexOutOfBoundsException> { str[3] } in byteAtAboveLength()
76 assertFailsWith<IndexOutOfBoundsException> { str[4] } in byteAtAboveLength()
DDslListTest.kt35 import kotlin.test.assertFailsWith
70 assertFailsWith<UnsupportedOperationException> { in dslListIsNotEvenSecretlyMutable()
82 assertFailsWith<UnsupportedOperationException> { in dslList_IteratorIsNotEvenSecretlyMutable()
94 assertFailsWith<UnsupportedOperationException> { in dslList_ListIteratorIsNotEvenSecretlyMutable()
106 assertFailsWith<UnsupportedOperationException> { in dslList_ListIteratorIndexIsNotEvenSecretlyMutable()
DExtensionListTest.kt37 import kotlin.test.assertFailsWith
82 assertFailsWith<UnsupportedOperationException> { in extensionListIsNotEvenSecretlyMutable()
96 assertFailsWith<UnsupportedOperationException> { in extensionList_IteratorIsNotEvenSecretlyMutable()
110 assertFailsWith<UnsupportedOperationException> { in extensionList_ListIteratorIsNotEvenSecretlyMutable()
124 assertFailsWith<UnsupportedOperationException> { in extensionList_ListIteratorIndexIsNotEvenSecretlyMutable()
/external/okio/okio/src/commonTest/kotlin/okio/
DCommonRealBufferedSinkTest.kt21 import kotlin.test.assertFailsWith
99 assertFailsWith<IOException> { in closeWithExceptionWhenWriting()
111 assertFailsWith<IOException> { in closeWithExceptionWhenClosing()
141 assertFailsWith<IllegalStateException> { in operationsAfterClose()
145 assertFailsWith<IllegalStateException> { in operationsAfterClose()
149 assertFailsWith<IllegalStateException> { in operationsAfterClose()
153 assertFailsWith<IllegalStateException> { in operationsAfterClose()
157 assertFailsWith<IllegalStateException> { in operationsAfterClose()
DCommonRealBufferedSourceTest.kt21 import kotlin.test.assertFailsWith
72 assertFailsWith<EOFException> { in requireInsufficientData()
117 assertFailsWith<IllegalStateException> { in operationsAfterClose()
121 assertFailsWith<IllegalStateException> { in operationsAfterClose()
125 assertFailsWith<IllegalStateException> { in operationsAfterClose()
129 assertFailsWith<IllegalStateException> { in operationsAfterClose()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-guava/test/
DListenableFutureTest.kt134 val e = assertFailsWith<IllegalArgumentException> { in testFutureLazyStartThrows()
222 assertFailsWith<CancellationException> { future.get() } in <lambda>()
244 assertFailsWith<CancellationException> { future.get() } in <lambda>()
267 assertFailsWith<CancellationException> { future.get() } in <lambda>()
287 assertFailsWith<CancellationException> { asListenableFuture.get() } in testAsListenableFutureCancellationPropagatingToDeferredNoInterruption()
291 assertFailsWith<CancellationException> { future.get() } in testAsListenableFutureCancellationPropagatingToDeferredNoInterruption()
310 assertFailsWith<CancellationException> { asListenableFuture.get() } in <lambda>()
316 assertFailsWith<CancellationException> { future.get() } in <lambda>()
338 assertFailsWith<CancellationException> { deferred.await() } in <lambda>()
346 assertFailsWith<CancellationException> { future.get() } in <lambda>()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/test/
DRunTestTest.kt50 assertFailsWith<IllegalStateException> { in <lambda>()
232 assertFailsWith<IllegalArgumentException> { in <lambda>()
241 assertFailsWith<RuntimeException> { it() } in <lambda>()
251 assertFailsWith<RuntimeException> { it() } in <lambda>()
284 assertFailsWith<AssertionError> { it() } in <lambda>()
301 assertFailsWith<TimeoutCancellationException> { it() } in <lambda>()
315 assertFailsWith<TestException> { it() } in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/sync/
DMutexTest.kt116 assertFailsWith<IllegalStateException> { mutex.unlock(Any()) } in testUnlockWithNullOwner()
135 assertFailsWith<IllegalStateException> { mutex.unlock(owner2) } in <lambda>()
147 assertFailsWith<IllegalStateException> { mutex.tryLock(owner) } in <lambda>()
148 assertFailsWith<IllegalStateException> { mutex.lock(owner) } in <lambda>()
149 assertFailsWith<IllegalStateException> { select { mutex.onLock(owner) {} } } in <lambda>()

12345