Home
last modified time | relevance | path

Searched refs:listOf (Results 1 – 25 of 171) sorted by relevance

1234567

/external/kotlinx.coroutines/kotlinx-coroutines-debug/src/
DCoroutinesBlockHoundIntegration.kt40 for (method in listOf("finalizeFinishingState", "invokeOnCompletion", "makeCancelling", in <lambda>()
51 for (method in listOf("clear", "peek", "removeFirstOrNull", "addLast")) { in <lambda>()
75 … for (method in listOf("emitSuspend", "awaitValue", "getReplayCache", "tryEmit", "cancelEmitter", in <lambda>()
80 for (method in listOf("getSubscriptionCount", "allocateSlot", "freeSlot")) { in <lambda>()
95 for (method in listOf( in <lambda>()
107 for (method in listOf("offerInternal", "offerSelectInternal", "updateHead")) { in <lambda>()
110 for (method in listOf("checkOffer", "pollInternal", "pollSelectInternal")) { in <lambda>()
119 …for (method in listOf("offerInternal", "offerSelectInternal", "pollInternal", "pollSelectInternal", in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/sharing/
DSharedFlowTest.kt144 assertEquals(listOf(1), sh.replayCache) in <lambda>()
148 assertEquals(listOf(2), sh.replayCache) in <lambda>()
167 assertEquals(listOf(6), sh.replayCache) in <lambda>()
187 assertEquals(listOf(null), sh.replayCache) in <lambda>()
189 assertEquals(listOf(null), sh.replayCache) in <lambda>()
196 assertEquals(listOf(17), sh.replayCache) in <lambda>()
202 assertEquals(listOf(17), sh.replayCache) in <lambda>()
210 assertEquals(listOf(), sh.replayCache) in <lambda>()
229 assertEquals(listOf(3), sh.replayCache) in <lambda>()
233 assertEquals(listOf(5), sh.replayCache) in <lambda>()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/operators/
DMergeTest.kt27 val flow = listOf(flowOf(), flowOf(42), flowOf()).merge() in <lambda>()
34 val list = listOf(flowOf(1), flowOf(null), flowOf(2)).merge().toList() in <lambda>()
35 assertEquals(listOf(1, null, 2), list) in <lambda>()
44 val result = listOf(flow).merge().flowOn(NamedDispatchers("irrelevant")).toList() in <lambda>()
45 assertEquals(listOf("source"), result) in <lambda>()
54 val result = listOf(flow.flowOn(NamedDispatchers("1")), flow.flowOn(NamedDispatchers("2"))) in <lambda>()
58 assertEquals(listOf("1", "2"), result) in <lambda>()
DScanTest.kt16 assertEquals(listOf(1, 3, 6, 10, 15), result) in <lambda>()
23 assertEquals(listOf(emptyList(), listOf(1), listOf(1, 2), listOf(1, 2, 3)), result) in <lambda>()
30 assertEquals(listOf(null, 2, 2, 2, 2, 7), result) in <lambda>()
DFlatMapLatestTest.kt17 assertEquals(listOf(1, 2, 2, 3, 3, 4), flow.toList()) in <lambda>()
27 assertEquals(listOf(0, 1, 2, 3, 4), list) in <lambda>()
61 val flow = listOf(1, 2, 3, 4).asFlow() in <lambda>()
69 assertEquals(listOf(42), result) in <lambda>()
135 assertEquals(listOf(1), flow.take(1).toList()) in <lambda>()
DZipTest.kt19 assertEquals(listOf("a1", "b2", "c3"), f1.zip(f2, { i, j -> i + j }).toList()) in <lambda>()
26 assertEquals(listOf("a1", "b2", "c3"), f1.zip(f2) { i, j -> i + j }.toList()) in <lambda>()
27 assertEquals(listOf("a1", "b2", "c3"), f2.zip(f1) { i, j -> j + i }.toList()) in <lambda>()
55 assertEquals(listOf("a1", "null2", "null3"), f1.zip(f2, { i, j -> i + j }).toList()) in <lambda>()
62 assertEquals(listOf("a1", "bnull", "cnull"), f1.zip(f2, { i, j -> i + j }).toList()) in <lambda>()
77 assertEquals(listOf("1a", "2b"), f1.zip(f2) { s1, s2 -> s1 + s2 }.toList()) in <lambda>()
95 assertEquals(listOf("1a", "2b"), f1.zip(f2) { s1, s2 -> s1 + s2 }.toList()) in <lambda>()
115 assertEquals(listOf("a1", "b2"), f2.zip(f1) { s1, s2 -> s1 + s2 }.toList()) in <lambda>()
DDebounceTest.kt32 assertEquals(listOf("A", "D", "E"), result) in <lambda>()
61 assertEquals(listOf("A", null, null), result) in <lambda>()
221 assertEquals(listOf("A", "D", "E"), result) in <lambda>()
252 assertEquals(listOf(1, 3, 4, 5), result) in <lambda>()
270 assertEquals(listOf("A", "B", "C"), result) in <lambda>()
288 assertEquals(listOf("A", "B"), result) in <lambda>()
319 assertEquals(listOf("A", "C", "D", "E"), result) in <lambda>()
DTransformLatestTest.kt18 assertEquals(listOf(1, 2, 2, 3, 3, 4), flow.toList()) in <lambda>()
30 assertEquals(listOf(0, 1, 2, 3, 4), list) in <lambda>()
69 val flow = listOf(1, 2, 3, 4).asFlow() in <lambda>()
75 assertEquals(listOf(42), result) in <lambda>()
158 assertEquals(listOf(1), flow.take(1).toList()) in <lambda>()
DSampleTest.kt33 assertEquals(listOf("A", "B", "D"), result) in <lambda>()
71 assertEquals(listOf(2, 6, 7), result) in <lambda>()
117 assertEquals(listOf("A", null, null), result) in <lambda>()
148 assertEquals(listOf("A", "B", "C"), result) in <lambda>()
168 assertEquals(listOf(-1, -3, 0, 1, 2, 3), flow.toList()) in <lambda>()
298 assertEquals(listOf("A", "B", "D"), result) in <lambda>()
DTransformWhileTest.kt14 val expected = listOf("A", "B", "C", "D") in <lambda>()
44 assertEquals(listOf(1, 2), transformed.toList()) in <lambda>()
50 val source = listOf( in <lambda>()
DCombineTest.kt25 assertEquals(listOf("a1", "b2", "c3"), list) in <lambda>()
33 assertEquals(listOf("a1", "null2", "null3"), list) in <lambda>()
41 assertEquals(listOf("anull", "b2", "cnull"), list) in <lambda>()
89 assertEquals(listOf("a1", "b1", "c1", "c2", "c3"), result) in <lambda>()
119 assertEquals(listOf("a1", "b1", "c1", "c2", "c3"), result) in <lambda>()
283 combineOriginal(listOf(this, other)) { args -> in combineLatest()
307 combineTransformOriginal(listOf(this, other)) { args -> in combineLatest()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DAwaitTest.kt28 assertEquals(listOf("OK", 1L), awaitAll(d, d2)) in <lambda>()
47 assertEquals(listOf(1, 2), awaitAll(d, d2)) in <lambda>()
57 assertEquals(listOf(1L, ""), listOf(d1, d2).awaitAll()) in <lambda>()
58 assertEquals(listOf(1L, Unit), listOf(d1, d3).awaitAll()) in <lambda>()
59 assertEquals(listOf("", Unit), listOf(d2, d3).awaitAll()) in <lambda>()
150 assertEquals(listOf(1, 2), awaitAll(d1, d2)) in <lambda>()
199 listOf(d1, d2, job).awaitAll() in <lambda>()
225 assertEquals(listOf("OK", "OK", "OK"), awaitAll(d, d, d)) in <lambda>()
338 listOf<Job>().joinAll() in <lambda>()
DSupervisorTest.kt14 unhandled = listOf( in <lambda>()
41 unhandled = listOf( in <lambda>()
60 unhandled = listOf( in <lambda>()
134 …fun testSupervisorThrowsWithFailingChild() = runTest(unhandled = listOf({e -> e is TestException2}… in <lambda>()
/external/kotlinx.atomicfu/atomicfu/src/commonTest/kotlin/kotlinx/atomicfu/test/
DAtomicArrayTest.kt84 val l1 = listOf(listOf("a", "bb", "ccc"), listOf("a", "bb")) in testRefArray()
85 val l2 = listOf(listOf("1", "22", "333"), listOf("1", "22")) in testRefArray()
89 A.mapArr[0].value = mapOf(listOf("A", "B") to "C") in testRefArray()
99 val l1 = listOf("a", "bb", "ccc") in extendedApiTest()
100 val l2 = listOf("dddd") in extendedApiTest()
101 val l3 = listOf("a", "bb", "ccc", "dddd") in extendedApiTest()
DInlineCASTest.kt10 private val ref = atomic(listOf("AAA")) in <lambda>()
25 assertEquals(ref.casLoop(listOf("BBB")), listOf("BBB")) in <lambda>()
DUncheckedCastTest.kt10 private val topLevelS = atomic<Any>(listOf("A", "B"))
12 private val topLevelSS = atomic<Any>(listOf(arrayOf("A", "B"), arrayOf("C", "D")))
22 bs.lazySet(mapOf(1 to listOf(Box(1), Box(2)))) in testAtomicValUncheckedCast()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/channels/
DChannelFlowTest.kt19 assertEquals(listOf(1, 2, 3), flow.toList()) in <lambda>()
29 assertEquals(listOf(1, 2), flow.toList()) in <lambda>()
40 assertEquals(listOf(1, 4), flow.toList()) // two elements in the middle got conflated in <lambda>()
88 assertEquals(listOf(1, 1), f.toList()) in <lambda>()
95 assertEquals(listOf(1, 1), f.toList()) in <lambda>()
165 …fun testClosedPrematurely() = runTest(unhandled = listOf({ e -> e is ClosedSendChannelException })… in <lambda>()
194 assertEquals(listOf(1), flow.toList()) in <lambda>()
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/flow/scrabble/
DShakespearePlaysScrabble.kt78 val expected = listOf(120 to listOf("jezebel", "quickly"),
79 118 to listOf("zephyrs"), 116 to listOf("equinox"))
/external/dokka/core/src/test/kotlin/format/
DKotlinWebSiteFormatTest.kt10 …ice = KotlinWebsiteFormatService(fileGenerator, KotlinLanguageService(), listOf(), DokkaConsoleLog… in <lambda>()
62 …RootFromPath("testdata/format/website/$path/jvm.kt"), defaultPlatforms = listOf("JVM"), options = … in <lambda>()
63 …ootFromPath("testdata/format/website/$path/jre7.kt"), defaultPlatforms = listOf("JVM", "JRE7"), op… in <lambda>()
64 …tRootFromPath("testdata/format/website/$path/js.kt"), defaultPlatforms = listOf("JS"), options = o… in <lambda>()
DKotlinWebSiteHtmlFormatTest.kt8 …= KotlinWebsiteHtmlFormatService(fileGenerator, KotlinLanguageService(), listOf(), EmptyHtmlTempla… in <lambda>()
73 …romPath("testdata/format/website-html/$path/jvm.kt"), defaultPlatforms = listOf("JVM"), options = … in <lambda>()
74 …omPath("testdata/format/website-html/$path/jre7.kt"), defaultPlatforms = listOf("JVM", "JRE7"), op… in <lambda>()
75 …FromPath("testdata/format/website-html/$path/js.kt"), defaultPlatforms = listOf("JS"), options = o… in <lambda>()
/external/dokka/core/src/main/kotlin/Generation/
DGenerator.kt19 fun Generator.buildPage(node: DocumentationNode): Unit = buildPages(listOf(node)) in buildPage()
21 fun Generator.buildOutline(node: DocumentationNode): Unit = buildOutlines(listOf(node)) in buildPage()
23 fun Generator.buildAll(node: DocumentationNode): Unit = buildAll(listOf(node)) in buildPage()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-jdk8/test/stream/
DConsumeAsFlowTest.kt17 val list = listOf(1, 2, 3) in <lambda>()
23 val list = listOf(3, 4, 5) in <lambda>()
31 val list = listOf(2, 3, 9) in <lambda>()
/external/okio/okio/src/commonTest/kotlin/okio/
DCommonBufferTest.kt116 assertEquals(listOf(size * 2), segmentSizes) in moveBytesBetweenBuffersShareSegment()
122 assertEquals(listOf(size, size), segmentSizes) in moveBytesBetweenBuffersReassignSegment()
129 listOf( in moveBytesBetweenBuffersMultipleSegments()
162 assertEquals(listOf(Segment.SIZE - 10, writeSize), segmentSizes(sink)) in writeSplitSourceBufferLeft()
163 assertEquals(listOf(Segment.SIZE - writeSize, Segment.SIZE), segmentSizes(source)) in writeSplitSourceBufferLeft()
177 assertEquals(listOf(Segment.SIZE - 10, writeSize), segmentSizes(sink)) in writeSplitSourceBufferRight()
178 assertEquals(listOf(Segment.SIZE - writeSize, Segment.SIZE), segmentSizes(source)) in writeSplitSourceBufferRight()
189 assertEquals(listOf(30), segmentSizes(sink)) in writePrefixDoesntSplit()
190 assertEquals(listOf(Segment.SIZE - 20, Segment.SIZE), segmentSizes(source)) in writePrefixDoesntSplit()
204 assertEquals(listOf(30), segmentSizes(sink)) in writePrefixDoesntSplitButRequiresCompact()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-debug/test/
DDebugProbesTest.kt20 val traces = listOf( in <lambda>()
41 val traces = listOf( in <lambda>()
72 val traces = listOf( in <lambda>()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/
DInferenceContextTest.java56 listOfString = listOf(string); in setup()
60 listOfE = listOf(new ResolvedTypeVariable(tpE)); in setup()
63 private ResolvedReferenceType listOf(ResolvedType elementType) { in listOf() method in InferenceContextTest
82 assertEquals(listOf(new InferenceVariableType(0, MyObjectProvider.INSTANCE)), result); in placingASingleVariableInside()

1234567